Beispiel #1
0
        public void getProductNamesByVendorNameTest()
        {
            List <string> products = AdventureWorksLambda.getProductNamesByVendorName("International");

            Assert.AreEqual("Lower Head Race", products[0]);

            //Compare with LINQ without Lambda
            List <string> expected = AdventureWorksLinq.getProductNamesByVendorName("International");

            CollectionAssert.AreEqual(expected, products);
        }