public void Get_Total_Amount_Of_Orders() { MasterOrder newMaster = new MasterOrder(); newMaster.AddOrder(new CookieOrder("Thin Mints", 10)); newMaster.AddOrder(new CookieOrder("Thin Mints", 10)); int totalBoxes = newMaster.GetTotalBoxes(); Assert.Equal(2, totalBoxes); }
public void Testtotalboxes() { MasterOrder order = new MasterOrder(); //ACT order.AddOrder(new CookieOrder("mint", 5)); order.AddOrder(new CookieOrder("Joescookies", 5)); order.AddOrder(new CookieOrder("mint", 5)); int total = order.GetTotalBoxes(); //assert Assert.Equal(15, total); }
public void ShouldGetTotalBoxes() // { //ARRANGE MasterOrder testorder = new MasterOrder(); //ACT testorder.AddOrder(new CookieOrder("fudge", 12)); testorder.AddOrder(new CookieOrder("mix", 1)); testorder.AddOrder(new CookieOrder("elephant", 2)); int sum = testorder.GetTotalBoxes(); //ASSERT Assert.Equal(15, sum); }
public void GetTotalBoxes_Defaults_To_Zero() { var result = masterOrder.GetTotalBoxes(); Assert.Equal(0, result); }