public void TestCompareEntityNotEqual() { Customer customer = new Customer { CustomerID = "ALFKI" }; Assert.AreEqual(90, this.Northwind.List<Customer>().Where(c => c != customer).Count()); }
public void TestCompareEntityEqual() { Customer customer = new Customer { CustomerID = "ALFKI" }; var list = this.Northwind.List<Customer>().Where(c => c == customer).ToList(); Assert.AreEqual(1, list.Count); Assert.AreEqual("ALFKI", list[0].CustomerID); }