public void TestGetDateTimeWithIsDBNullCheck() { var reader = new ListDataReader <Student>(_Students); reader.Read(); var col = "DateTime2"; Assert.Equal(new DateTime(1990, 2, 3), reader.GetDateTimeWithNull(col).Value); reader.Read(); Assert.False(reader.GetDateTimeWithNull(col).HasValue); reader.Read(); Assert.Equal(new DateTime(1991, 2, 3), reader.GetDateTimeWithNull(col).Value); }