public void GetTotalPrice_Test() { order.Bonus = Bonuses.TenPercent; Assert.AreEqual(40.5, order.GetTotalPrice()); order.Bonus = Bonuses.FlatTwoIfAmountMoreThanFive; Assert.AreEqual(43.0, order.GetTotalPrice()); }
public void ScenarioA() { var order = new Order(1, new List <Product>() { new Product("A"), new Product("B"), new Product("C") }); var totalPrice = order.GetTotalPrice(); Assert.AreEqual(totalPrice, 100); }