public void BoolTypeConverter_ConvertCoreWithNullString_Converts()
        {
            string source = null;

            var result = BoolTypeConverter.Convert(source);

            Assert.IsFalse(result);
        }
        public void BoolTypeConverter_ConvertCoreWithEmptyString_Converts()
        {
            string source = string.Empty;

            var result = BoolTypeConverter.Convert(source);

            Assert.IsFalse(result);
        }
Exemplo n.º 3
0
        public void BoolTypeConverter_ConvertCoreWithValidString_Converts()
        {
            bool   value  = true;
            string source = value.ToString();

            var result = BoolTypeConverter.Convert(source);

            Assert.IsTrue(result);
        }