Exemple #1
0
        public void IsNull_NonNullNullableValue_ShouldBeFalse()
        {
            int?i = 0;

            Assert.IsFalse(DBNullHelper.IsNull(i));
        }
Exemple #2
0
        public void IsNull_NullNullableValue_ShouldBeTrue()
        {
            int?i = null;

            Assert.IsTrue(DBNullHelper.IsNull(i));
        }
Exemple #3
0
        public void IsNull_ValueType_ShouldBeFalse()
        {
            int i = 0;

            Assert.IsFalse(DBNullHelper.IsNull(i));
        }
Exemple #4
0
        public void IsNull_NonNullObject_ShouldBeFalse()
        {
            object o = new object();

            Assert.IsFalse(DBNullHelper.IsNull(o));
        }
Exemple #5
0
 public void IsNull_DBNullValue_ShouldBeTrue()
 {
     Assert.IsTrue(DBNullHelper.IsNull(DBNull.Value));
 }
Exemple #6
0
        public void IsNull_NullObject_ShouldBeTrue()
        {
            object o = null;

            Assert.IsTrue(DBNullHelper.IsNull(o));
        }