コード例 #1
0
        public void FoodPlanWithDessertShouldBeInvalid()
        {
            var fp = SetupValidBaseFoodPlan();

            fp.AddItem(DishType.Dessert);
            var val = new MorningValidator();

            var isValid = val.Validate(fp);

            Assert.IsFalse(isValid);
        }
コード例 #2
0
        public void FoodPlanWithOneDrinkShouldBeValid()
        {
            var fp = SetupValidBaseFoodPlan();

            fp.AddItem(DishType.Drink);
            var val = new MorningValidator();

            var isValid = val.Validate(fp);

            Assert.IsTrue(isValid);
        }