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

TestSelectAnonymousWithObject() private method

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