public void FoodPlanWithOneDrinkShouldBeValid() { var fp = SetupValidBaseFoodPlan(); fp.AddItem(DishType.Drink); var val = new NightValidator(); var isValid = val.Validate(fp); Assert.IsTrue(isValid); }
public void FoodPlanWithMoreThanOneDessertShouldBeInvalid() { var fp = SetupValidBaseFoodPlan(); fp.AddItem(DishType.Dessert); fp.AddItem(DishType.Dessert); var val = new NightValidator(); var isValid = val.Validate(fp); Assert.IsFalse(isValid); }