public void GetTotal_With_ItemD_In_Basket_Returns_15_Cents() { //Arrange var checkout = new Checkout(); checkout.AddItem(bee.D); //Act int totalPrice = checkout.GetTotal(); //Assert Assert.That(totalPrice, Is.EqualTo(15)); }
public void GetTotal_With_Three_Of_ItemB_Returns_80_Cents() { //Arrange var checkout = new Checkout(); checkout.AddItem(bee.B); checkout.AddItem(bee.B); checkout.AddItem(bee.B); //Act int totalPrice = checkout.GetTotal(); //Assert Assert.That(totalPrice, Is.EqualTo(80)); }