public void A_Complete_Instance_Returns_No_Errors() { var configuration = PizzaConfigurationBuilder.BuildCompleteInstance(); var checker = new ConfigurationRulesChecker(); List<string> errors; checker.Check(configuration, out errors); Assert.IsEmpty(errors); }
public void An_InComplete_Instance_Returns_Errors() { var configuration = PizzaConfigurationBuilder.BuildWithNoSetOptions(); var checker = new ConfigurationRulesChecker(); List<string> errors; checker.Check(configuration, out errors); Assert.IsNotEmpty(errors); }