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

TestSelectAnonymousOne() private method

private TestSelectAnonymousOne ( ) : void
return void
        public virtual void TestSelectAnonymousOne()
        {
            var q = db.Customers.Where(c => c.City == "London").Select(c => new { c.City });
            var list = q.ToList();
            AssertValue(6, list.Count);
            AssertValue("London", list[0].City);
            Assert.IsTrue(list.All(x => x.City == "London"));
        }
NorthwindExecutionTest