public void RequiredForCompletenessShouldValidateTheRequiredForCompletiondAttributeWhenPropertiesHAsNoValues() { var sut =new RequiredForCompleteness(new GeneralViewModel()); var result= sut.ToString(); Assert.IsFalse(string.IsNullOrEmpty(result)); Assert.IsFalse(sut.IsValid); }
public void RequiredForCompletenessShouldValidateTheRequiredForCompletiondAttributeWhenAllPropertiesMarkedHasValues() { var sut = new RequiredForCompleteness(new GeneralViewModel { AppAcronym = "", AppVersion = "" }); var result = sut.ToString(); Assert.IsTrue(string.IsNullOrEmpty(result)); Assert.IsTrue(sut.IsValid); }