public void IsValid_With_Not_Null() { object notNullObj = "test"; var rqdattr = new CustomRequiredAttribute(); Assert.IsTrue(rqdattr.IsValid(notNullObj)); }
public void IsValid_With_Null() { object nullObj = null; var rqdattr = new CustomRequiredAttribute(); Assert.IsFalse(rqdattr.IsValid(nullObj)); }