public void TextShouldHaveCorrectRequiredValue(bool value) { // Arrange var sut = new OptionSchemaFactory(); // Act var option = sut.Text("name", "description", null, value); // Assert Assert.Equal(value, option.Required); }
public void TextShouldHaveCorrectName() { // Arrange var sut = new OptionSchemaFactory(); const string expected = "expected"; // Act var option = sut.Text(expected, null); // Assert Assert.Equal(expected, option.Name); }
public void TextShouldHaveCorrectDescription() { // Arrange var sut = new OptionSchemaFactory(); const string expected = "expected"; // Act var option = sut.Text("name", expected); // Assert Assert.Equal(expected, option.Description); }