public void ShouldConvertToFalseValueWhenFalse() { const bool boolean = false; const string expected = "No"; var converter = new BooleanToStringValueConverter { TrueValue = "Yes", FalseValue = expected }; // Act string converted = converter.Convert(boolean); // Assert converted.ShouldBe(expected); }
public void ShouldConvertToTrueValueWhenTrue() { // Arrange const bool boolean = true; const string expected = "Yes"; var converter = new BooleanToStringValueConverter { TrueValue = expected, FalseValue = "No" }; // Act string converted = converter.Convert(boolean); // Assert converted.ShouldBe(expected); }