public void ProvidingNullReturnsNullableFloat()
        {
            var converter = new NullableFloatConverter();

            var result = converter.ConvertBack(null, typeof (float?), null, null);

            Assert.IsNull(result);
        }
Exemple #2
0
        public void ProvidingNullReturnsNullableFloat()
        {
            var converter = new NullableFloatConverter();

            var result = converter.ConvertBack(null, typeof(float?), null, null);

            Assert.IsNull(result);
        }
        public void FloatStringReturnsParsedFloat()
        {
            var converter = new NullableFloatConverter();

            const float expected = 12.34f;

            var result = converter.ConvertBack(expected.ToString(), typeof (float?), null, null);

            Assert.AreEqual(expected, result);
        }
Exemple #4
0
        public void FloatStringReturnsParsedFloat()
        {
            var converter = new NullableFloatConverter();

            const float expected = 12.34f;

            var result = converter.ConvertBack(expected.ToString(), typeof(float?), null, null);

            Assert.AreEqual(expected, result);
        }