Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public void getProductNamesByVendorNameTest()
        {
            List <string> products = AdventureWorksLinq.getProductNamesByVendorName("International");

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