Esempio n. 1
0
        public void IsNullTest()
        {
            int?nullInt = null;

            Assert.AreEqual(true, ConvertUtility.IsNull(nullInt));
            Assert.AreEqual(true, ConvertUtility.IsNull(null));
            Assert.AreEqual(true, ConvertUtility.IsNull(DBNull.Value));

            Assert.AreEqual(false, ConvertUtility.IsNull(0));
            Assert.AreEqual(false, ConvertUtility.IsNull("Test"));
        }