Exemple #1
0
        public void IsNotNull_ClassNull()
        {
            PropClass obj        = null;
            var       validacion = obj.IsNotNull();

            Assert.IsFalse(validacion);
        }
Exemple #2
0
        public void IsNotNull_ObjetoClass()
        {
            var obj = new PropClass
            {
                Prop1 = "abc",
                Prop2 = 123
            };
            var validacion = obj.IsNotNull();

            Assert.IsTrue(validacion);
        }