public void NullUtils_GetDoubleOrNull_Value_Success()
        {
            var reader = new StubDataReader(new StubResultSet("unit_test").AddRow(9D));

            reader.Read();
            Assert.AreEqual(9D, NullUtils.GetDoubleOrNull(reader, "unit_test").Value,
                            "GetDoubleOrNull(value) did not return the expected value");
        }
        public void NullUtils_GetDoubleOrNull_Null_Success()
        {
            var reader = new StubDataReader(new StubResultSet("unit_test").AddRow(DBNull.Value));

            reader.Read();
            Assert.IsNull(NullUtils.GetDoubleOrNull(reader, "unit_test"),
                          "GetDoubleOrNull(null) should have returned null");
        }