public void NullUtils_GetDateTimeOrNull_Null_Success()
        {
            var reader = new StubDataReader(new StubResultSet("unit_test").AddRow(DBNull.Value));

            reader.Read();
            Assert.IsNull(NullUtils.GetDateTimeOrNull(reader, "unit_test"),
                          "GetDateTime(null) should have returned null");
        }
        public void NullUtils_GetDateTimeOrNull_Value_Success()
        {
            var reader = new StubDataReader(new StubResultSet("unit_test").AddRow(new DateTime(2004, 12, 13)));

            reader.Read();
            Assert.AreEqual(new DateTime(2004, 12, 13), NullUtils.GetDateTimeOrNull(reader, "unit_test").Value,
                            "GetDateTimeOrNull(value) should have returned a value");
        }