public void DBNullCoalese_Test() { String nullString = null; String emptyString = String.Empty; DateTime defaultDateTime = default(DateTime); Assert.True(nullString.DBNullCoalese() is DBNull); Assert.True(emptyString.DBNullCoalese() is DBNull); Assert.True(defaultDateTime.DBNullCoalese() is DBNull); Int32 notNullOrDefault = 1; Assert.False(notNullOrDefault.DBNullCoalese() is DBNull); }