public void ConvertFromTrue() { var sut = new BooleanStringTypeHandler("YEP", "NOPE"); var result = sut.Parse("YEP"); result.Should().Be(true); }
public void ConvertToFalse() { var parameter = new OracleParameter(); var sut = new BooleanStringTypeHandler("YEP", "NOPE"); sut.SetValue(parameter, false); parameter.Value.Should().Be("NOPE"); parameter.OracleDbType.Should().Be(OracleDbType.Varchar2); }