public void IsNewDrinkOrAdditionTest() { DrinkModel model = new DrinkModel(); model.IsNewDrinkOrAddition("鐵觀音", 10, true); Assert.AreEqual(model.GetDrinkMenuSize(), 5); model.IsNewDrinkOrAddition("haha", 10, true); Assert.AreEqual(model.GetDrinkMenuSize(), 6); model.IsNewDrinkOrAddition("珍珠", 10, false); Assert.AreEqual(model.GetAdditionMenuSize(), 4); model.IsNewDrinkOrAddition("GG", 10, false); Assert.AreEqual(model.GetAdditionMenuSize(), 5); }
public void DrinkModelTest() { DrinkModel model = new DrinkModel(); Assert.AreEqual(model.GetDrinkMenuSize(), 5); }