Exemple #1
0
        public void AddNewMealTest()
        {
            DataModel dataModel = new DataModel();

            string[] mealInformation = { "鮭魚手卷", "100", "123", "壽司", "好吃" };
            int      count           = dataModel.MealsList.Count;

            dataModel.AddNewMeal(mealInformation);
            Assert.AreEqual(dataModel.MealsList.Count, count + 1);
        }