Example #1
0
        public void NullDoubleTest()
        {
            var prm = new SqlParameter("", SqlDbType.Float)
            {
                Value = System.DBNull.Value
            };

            prm.GetNullableDouble().Should().Be(null, "that was a null database double value");
            double.IsNaN(prm.GetDouble()).Should().Be(true, "that was a null database double value");
        }