public void GetTotalOfEmptyList() { OrderList orderList = new OrderList(); Till till = new Till(orderList); Assert.AreEqual("�00", till.GetTotalFromList()); }
public void GetTotalOfOneMain() { OrderList orderList = new OrderList(); orderList.AddMain(MainMenu.CheeseBurger); Till till = new Till(orderList); Assert.AreEqual("�00", till.GetTotalFromList()); }
public void GetTotalOfOneStarter() { OrderList orderList = new OrderList(); orderList.AddStarter(StarterMenu.Chips); Till till = new Till(orderList); Assert.AreEqual("�40", till.GetTotalFromList()); }
public void GetTotalOfOneMainAfterDelete() { OrderList orderList = new OrderList(); orderList.AddMain(MainMenu.CheeseBurger); orderList.AddMain(MainMenu.PepperoniPizza); Till till = new Till(orderList); orderList.DeleteMain(MainMenu.PepperoniPizza); Assert.AreEqual("�00", till.GetTotalFromList()); }
public void GetTotalOfMultipleFoodItems(int numOfStarters, int numOfMains, string expectedCost) { OrderList orderList = new OrderList(); for (int i = 0; i < numOfStarters; i++) { orderList.AddStarter(StarterMenu.Chips); } for (int i = 0; i < numOfMains; i++) { orderList.AddMain(MainMenu.CheeseBurger); } Till till = new Till(orderList); Assert.AreEqual(expectedCost, till.GetTotalFromList()); }