Example #1
0
        public void IsValid_With_Not_Null()
        {
            object notNullObj = "test";
            var    rqdattr    = new CustomRequiredAttribute();

            Assert.IsTrue(rqdattr.IsValid(notNullObj));
        }
Example #2
0
        public void IsValid_With_Null()
        {
            object nullObj = null;
            var    rqdattr = new CustomRequiredAttribute();

            Assert.IsFalse(rqdattr.IsValid(nullObj));
        }