public void VerifyThatWithRecursiveValidationDoesNotStopOnFirstErrorOnSubValidation() { var rng = new OwnAnotherClassTest() { Reference = new AnotherClassTest() }; var v = new Core.Validator(); ValidationResult res = v.ValidateObject(rng, ValidationFlags.RecursiveValidation); Assert.That(res.Errors, Has.Count.EqualTo(2)); }
public void VerifyThatWithRecursiveValidationDoesNotStopOnFirstErrorOnSubValidation() { var rng = new OwnAnotherClassTest() { Reference = new AnotherClassTest() }; var v = new Core.Validator(); ValidationResult res = v.ValidateObject(rng, ValidationFlags.RecursiveValidation); Assert.That(res.Errors, Has.Count.EqualTo(2)); }