public virtual void TestTakeDistinctCount() { var cnt = db.Orders.OrderBy(o => o.CustomerID).Select(o => o.CustomerID).Take(5).Distinct().Count(); AssertValue(1, cnt); }