public void MaximumLengthValidator_GivenValidLength_ReturnsTrue() { var validator = new MaximumLengthValidator(new ValidatorOptions(5, 10)); var password = "******"; var isValid = validator.IsValid(password); Assert.True(isValid); }
public void MaximumLengthValidator_GivenInvalidLength_ReturnsFalse() { var validator = new MaximumLengthValidator(new ValidatorOptions(5, 10)); var password = "******"; var isValid = validator.IsValid(password); Assert.False(isValid); }