NLite.Data.Test.NorthwindExecutionTest.TestDistinctTake C# (CSharp) Method

TestDistinctTake() private method

private TestDistinctTake ( ) : void
return void
        public virtual void TestDistinctTake()
        {
            // top must be forced to apply after distinct has been computed
            var list = db.Orders.OrderBy(o => o.CustomerID).Select(o => o.CustomerID).Distinct().Take(5).ToList();
            AssertValue(5, list.Count);
        }
NorthwindExecutionTest