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

TestCoalesce() private method

private TestCoalesce ( ) : void
return void
        public virtual void TestCoalesce()
        {

            var list = db.Customers.Select(c => new { City = (c.City == "London" ? null : c.City), Country = (c.CustomerID == "EASTC" ? null : c.Country) })
                         .Where(x => (x.City ?? "NoCity") == "NoCity").ToList();
            AssertValue(6, list.Count);
            AssertValue(null, list[0].City);
        }
NorthwindExecutionTest