Mercurial > pub > bltoolkit
annotate UnitTests/Linq/Exceptions/Inheritance.cs @ 0:f990fcb411a9
Копия текущей версии из github
| author | cin |
|---|---|
| date | Thu, 27 Mar 2014 21:46:09 +0400 |
| parents | |
| 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 } |
