public void IsNull_NonNullNullableValue_ShouldBeFalse() { int?i = 0; Assert.IsFalse(DBNullHelper.IsNull(i)); }
public void IsNull_NullNullableValue_ShouldBeTrue() { int?i = null; Assert.IsTrue(DBNullHelper.IsNull(i)); }
public void IsNull_ValueType_ShouldBeFalse() { int i = 0; Assert.IsFalse(DBNullHelper.IsNull(i)); }
public void IsNull_NonNullObject_ShouldBeFalse() { object o = new object(); Assert.IsFalse(DBNullHelper.IsNull(o)); }
public void IsNull_DBNullValue_ShouldBeTrue() { Assert.IsTrue(DBNullHelper.IsNull(DBNull.Value)); }
public void IsNull_NullObject_ShouldBeTrue() { object o = null; Assert.IsTrue(DBNullHelper.IsNull(o)); }