public void TestGetDecimalWithIsDBNullCheck() { var reader = new ListDataReader <Student>(_Students); reader.Read(); var col = "Decimal2"; Assert.Equal(4M, reader.GetDecimalWithNull(col).Value); reader.Read(); Assert.False(reader.GetDecimalWithNull(col).HasValue); reader.Read(); Assert.Equal(5M, reader.GetDecimalWithNull(col).Value); }