public IBuildParameterTypeBuilder AsCheckbox(Action<IBuildParameterCheckboxTypeBuilder> checkboxBuilder) { var builder = new BuildParameterCheckboxTypeBuilder(); checkboxBuilder(builder); var special = builder.Build(); if (!string.IsNullOrEmpty(special)) m_special = special; return this; }
public IBuildParameterTypeBuilder AsCheckbox(Action <IBuildParameterCheckboxTypeBuilder> checkboxBuilder) { var builder = new BuildParameterCheckboxTypeBuilder(); checkboxBuilder(builder); var special = builder.Build(); if (!string.IsNullOrEmpty(special)) { m_special = special; } return(this); }
public void BuildParameterCheckboxTypeBuilder_FormatTest(string checkedValue, string uncheckedValue, string expected) { // Arrange var testObject = new BuildParameterCheckboxTypeBuilder(); if (checkedValue != null) testObject.WithCheckedValue(checkedValue); if (uncheckedValue != null) testObject.WithUncheckedValue(uncheckedValue); // Act var result = testObject.Build(); // Assert result.Should().Be(expected); }