예제 #1
0
 public void OrderDrinkTest()
 {
     Assert.AreEqual(_model.GetOrderList().GetDrinkCount(), 0);
     for (int i = 0; i < 10; i++)
     {
         _model.AddItem(i.ToString(), i, "drink");
         _model.OrderDrink(i.ToString());
     }
     Assert.AreEqual(_model.GetOrderList().GetDrinkCount(), 10);
 }
예제 #2
0
 public void IsCheckOutOkTest()
 {
     Assert.AreEqual(_model.IsCheckOutOk(), false);
     _drinkModel.AddItem("dd", 10, "drink");
     _drinkModel.OrderDrink("dd");
     Assert.AreEqual(_model.IsCheckOutOk(), false);
     _model.SelectedDrinkIndex = 0;
     _model.SetSugarAndIce("ss", "Sugar");
     Assert.AreEqual(_model.IsCheckOutOk(), false);
     _model.SetSugarAndIce("tt", "T");
     Assert.AreEqual(_model.IsCheckOutOk(), true);
 }