Beispiel #1
0
        public void NullFloatTest()
        {
            var prm = new SqlParameter("", SqlDbType.Real)
            {
                Value = System.DBNull.Value
            };

            prm.GetNullableFloat().Should().Be(null, "that was null database single value");
            float.IsNaN(prm.GetFloat()).Should().Be(true, "that was a null database float value");
        }