Esempio n. 1
0
        public void GetPlansReturnsErrorWhenNoDishesAreAdded()
        {
            var temp   = new FoodPlan(FoodPlanType.Night);
            var result = temp.GetPlan();

            Assert.AreEqual("error", result);
        }
Esempio n. 2
0
        public void GetPlansReturnMultipleSides()
        {
            var temp = new FoodPlan(FoodPlanType.Night);

            temp.AddItem(DishType.Side);
            temp.AddItem(DishType.Side);
            var result = temp.GetPlan();

            StringAssert.Contains(result, "x2");
        }
Esempio n. 3
0
        public void GetPlansReturnMultipleDrinks()
        {
            var temp = new FoodPlan(FoodPlanType.Morning);

            temp.AddItem(DishType.Drink);
            temp.AddItem(DishType.Drink);
            temp.AddItem(DishType.Drink);
            var result = temp.GetPlan();

            StringAssert.Contains(result, "x3");
        }