static BValidator GetBValidator(AValidator aValidator = null) { return(new BValidator( new StandardValidationPredicates(), () => new ValidationRules <B>(), aValidator ?? GetAValidator() )); }
public void AAAA() { var x = new A { Value = "" }; var y = new A { Value = "100" }; var av = new AValidator(); av.ValidateAndThrow(x); Should.Throw <ShouldAssertException>(() => av.ValidateAndThrow(y)); }