Example #1
0
        public void IsNotNull()
        {
            string test = null;

            Assert.IsFalse(((string)null).IsNotNull());
            Assert.IsFalse(NullExtensions.IsNotNull(test));
            Assert.IsTrue(NullExtensions.IsNotNull("test"));
        }
        public void getNullReferenceTest2()
        {
            int number = 10;

            Assert.AreEqual(NullExtensions.getNullReference(number), false);
        }
        public void getNullReferenceTest3()
        {
            string word = "Welcome to EPAM";

            Assert.AreEqual(NullExtensions.getNullReference(word), false);
        }
        public void getNullReferenceTest1()
        {
            int?number = null;

            Assert.AreEqual(NullExtensions.getNullReference(number), true);
        }