예제 #1
0
        public void NullFloatTypeConverter_ConvertCoreWithEmptyString_Converts()
        {
            string source = string.Empty;

            var result = NullFloatTypeConverter.Convert(source);

            Assert.IsNull(result);
        }
예제 #2
0
        public void NullFloatTypeConverter_ConvertCoreWithValidString_Converts()
        {
            float  number = 5;
            string source = number.ToString();

            var result = NullFloatTypeConverter.Convert(source);

            Assert.IsNotNull(result);
            Assert.IsTrue(result == number);
        }