view UnitTests/Linq/Exceptions/Inheritance.cs @ 6:11b6da379593

Исправлена странная ошибка при использовании OfType<...>().Where(...)
author cin
date Mon, 05 Dec 2016 05:50:52 +0300
parents f990fcb411a9
children
line wrap: on
line source

using System;
using System.Linq;

using NUnit.Framework;

using BLToolkit.Data.Linq;

namespace Data.Exceptions
{
	using Linq;

	[TestFixture]
	public class Inheritance : TestBase
	{
		[Test, ExpectedException(typeof(LinqException))]
		public void Test1()
		{
			ForEachProvider(typeof(LinqException), db =>
			{
				var q = from p in db.ParentInheritance2 select p;
				q.ToList();
			});
		}
	}
}