public void FlagShouldHaveCorrectRequiredValue(bool value) { // Arrange var sut = new OptionSchemaFactory(); // Act var option = sut.Flag("name", "description", false, value); // Assert Assert.Equal(value, option.Required); }
public void FlagShouldHaveCorrectDefaultValue(bool value) { // Arrange var sut = new OptionSchemaFactory(); // Act var option = sut.Flag("id", "name", "description", value); // Assert Assert.Equal(value, option.DefaultValue); }
public void FlagShouldHaveCorrectName() { // Arrange var sut = new OptionSchemaFactory(); const string expected = "expected"; // Act var option = sut.Flag(expected, null); // Assert Assert.Equal(expected, option.Name); }
public void FlagShouldHaveCorrectDescription() { // Arrange var sut = new OptionSchemaFactory(); const string expected = "expected"; // Act var option = sut.Flag("name", expected); // Assert Assert.Equal(expected, option.Description); }