Ejemplo n.º 1
0
        public void ClearMealListTest()
        {
            CustomerFormPresentationModel model = new CustomerFormPresentationModel(new Model());

            model.AddMeal(model.FindMealByName("薯條(小包)"));
            model.AddMeal(model.FindMealByName("薯條(中包)"));
            Assert.AreEqual(model.GetMealList().Count, 2);
            model.ClearMealList();
            Assert.AreEqual(model.GetMealList().Count, 0);
        }