public void Sample1_1stx1_100() { var shoppingCart = new ShoppingCart(); List <Product> productsOfCart = new List <Product>() { new Product(Name: "Harry Potter 1", Price: 100, Amount: 1) }; var expected = 100; var actual = shoppingCart.CalculatePrice(productsOfCart); Assert.AreEqual(expected, actual); }
public void Sample7_1stX1_2ndX2_3rdX2_460() { var shoppingCart = new ShoppingCart(); List <Product> productsOfCart = new List <Product>() { new Product(Name: "Harry Potter 1", Price: 100, Amount: 1), new Product(Name: "Harry Potter 2", Price: 100, Amount: 2), new Product(Name: "Harry Potter 3", Price: 100, Amount: 2) }; var expected = 460; var actual = shoppingCart.CalculatePrice(productsOfCart); Assert.AreEqual(expected, actual); }