public void SetShouldHaveCorrectRequiredValue(bool value) { // Arrange var sut = new OptionSchemaFactory(); // Act var option = sut.Set("name", "description", Enumerable.Empty <ISetItem>(), null, value); // Assert Assert.Equal(value, option.Required); }
public void SetShouldHaveCorrectName() { // Arrange var sut = new OptionSchemaFactory(); const string expected = "expected"; // Act var option = sut.Set(expected, null, Enumerable.Empty <ISetItem>()); // Assert Assert.Equal(expected, option.Name); }
public void SetShouldHaveCorrectDescription() { // Arrange var sut = new OptionSchemaFactory(); const string expected = "expected"; // Act var option = sut.Set("id", "name", expected, Enumerable.Empty <ISetItem>()); // Assert Assert.Equal(expected, option.Description); }