Beispiel #1
0
            public void CallsMethodOnRegisteredValidatorsCorrectly()
            {
                var compositeValidator = new CompositeValidator();

                TestCompositeValidator(compositeValidator, validator => validator.AfterValidateFields(null, null),
                                       () => compositeValidator.AfterValidateFields(null, null));
            }
Beispiel #2
0
            public void ThrowsExceptionIfAnyValidatorDoes()
            {
                var compositeValidator = new CompositeValidator();

                TestCompositeRethrowException <ArgumentNullException>(compositeValidator, validator => validator.AfterValidateFields(null, null), () => compositeValidator.AfterValidateFields(null, null));
            }