public void YesVaryingCase() { var converter = new BoolConverterAuto(); var result = converter.Convert("yeS"); Assert.AreEqual(true, result); }
public void FalseVaryingCase() { var converter = new BoolConverterAuto(); var result = converter.Convert("faLse"); Assert.AreEqual(false, result); }
public void QuestionMark() { var converter = new BoolConverterAuto(); var result = converter.Convert("?"); Assert.AreEqual(null, result); }
public void KnownFalseString() { var converter = new BoolConverterAuto() { KnownFalseString = "ofcourseNOT", }; var result = converter.Convert(" OFcourseNOT "); Assert.AreEqual(false, result); }
public void KnownTrueString() { var converter = new BoolConverterAuto() { KnownTrueString = "ofcourse", }; var result = converter.Convert(" ofcourse"); Assert.AreEqual(true, result); }