public void ToBoolStrict_ValueValid() { string str = "True"; Boolean?value = ConvertEx.ToBoolStrict(str); Assert.AreEqual(value, true); }
public void ToBoolStrict_ValueIsY() { string str = "Y"; Boolean?value = ConvertEx.ToBoolStrict(str); Assert.IsNull(value); }
public void ToBoolStrict_ValueLowercaseTrue() { string str = "true"; Boolean?value = ConvertEx.ToBoolStrict(str); Assert.AreEqual(value, true); }
public void ToBoolStrict_ValueEmpty() { string str = string.Empty; Boolean?value = ConvertEx.ToBoolStrict(str); Assert.IsNull(value); }