Ejemplo n.º 1
0
 public void GetProductVendorString_MethodSyntaxTest()
 {
     using (ProductDataContext db = new ProductDataContext())
     {
         List <Product>       products       = db.GetProducts();
         List <ProductVendor> productVendors = db.GetProductVendors();
         string result = products.GetProductVendorString_MethodSyntax(productVendors);
         string line   = result.Substring(0, result.IndexOf('\n') - 1);
         Assert.AreEqual("Adjustable Race-Litware, Inc.", line);
     }
 }