Mercurial > pub > bltoolkit
annotate UnitTests/Linq/Exceptions/Inheritance.cs @ 6:11b6da379593
Исправлена странная ошибка при использовании OfType<...>().Where(...)
author | cin |
---|---|
date | Mon, 05 Dec 2016 05:50:52 +0300 |
parents | f990fcb411a9 |
children |
rev | line source |
---|---|
0 | 1 using System; |
2 using System.Linq; | |
3 | |
4 using NUnit.Framework; | |
5 | |
6 using BLToolkit.Data.Linq; | |
7 | |
8 namespace Data.Exceptions | |
9 { | |
10 using Linq; | |
11 | |
12 [TestFixture] | |
13 public class Inheritance : TestBase | |
14 { | |
15 [Test, ExpectedException(typeof(LinqException))] | |
16 public void Test1() | |
17 { | |
18 ForEachProvider(typeof(LinqException), db => | |
19 { | |
20 var q = from p in db.ParentInheritance2 select p; | |
21 q.ToList(); | |
22 }); | |
23 } | |
24 } | |
25 } |