public void Validate3() { var validator = new DataAnnotationsValidator(); var data = new TestData(); var result = validator.Validate(data); result.Last().ErrorMessage.ShouldBeEquivalentTo("Quartz\r\nNot Ok"); }
public void Validate2() { var validator = new DataAnnotationsValidator(); var data = new TestData2(); var result = validator.Validate(data); result.Count().ShouldBeEquivalentTo(0); }