public void CalculatePriceDiscountTest2() { cart = new Cart(); cart.AddItem(product3, 7); Assert.AreEqual(cart.CalculatePrice(), 8.75); Assert.AreEqual(cart.CalculateDiscount(), 1.50); }
public void CalculatePriceDiscountTest1() { cart = new Cart(); cart.AddItem(product, 4); cart.AddItem(product2, 2); cart.AddItem(product3, 1); cart.AddItem(product4, 1); Assert.AreEqual(cart.CalculatePrice(), 33.40); Assert.AreEqual(cart.CalculateDiscount(), 1.00); }