예제 #1
0
        public void TestConvertBoolValid(
            bool expected, string value)
        {
            var actual = RTConverters.ConvertBool(value);

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void TestConvertBoolInvalid(string value)
        {
            var exception = Assert.Throws <ArgumentException>(() => RTConverters.ConvertBool(value));

            Assert.True(exception.Message.Contains("Cannot parse bool "));
        }