public void TestConvertBoolValid( bool expected, string value) { var actual = RTConverters.ConvertBool(value); Assert.AreEqual(expected, actual); }
public void TestConvertBoolInvalid(string value) { var exception = Assert.Throws <ArgumentException>(() => RTConverters.ConvertBool(value)); Assert.True(exception.Message.Contains("Cannot parse bool ")); }