public void ShouldNotHaveValidationErrorFor(string propertyName) { ValidationTestExtension.ShouldNotHaveValidationError(Errors, propertyName, false); }
void IValidationResultTester.ShouldNotHaveValidationError(IEnumerable <MemberInfo> properties) { var propertyName = properties.Any() ? GetPropertyName(properties) : ValidationTestExtension.MatchAnyFailure; ValidationTestExtension.ShouldNotHaveValidationError(Errors, propertyName, true); }
public void ShouldNotHaveValidationErrorFor <TProperty>(Expression <Func <T, TProperty> > memberAccessor) { string propertyName = ValidatorOptions.PropertyNameResolver(typeof(T), memberAccessor.GetMember(), memberAccessor); ValidationTestExtension.ShouldNotHaveValidationError(Errors, propertyName, true); }