Validate() public method

public Validate ( object value, CultureInfo, cultureInfo ) : ValidationResult,
value object
cultureInfo CultureInfo,
return ValidationResult,
        public void ShouldFailOnBelowMin()
        {
            // => Arrange
            var rule = new MinValidationRule(10);

            // => Act
            var result = rule.Validate(1);

            // => Assert
            Assert.False(result.Success);
        }
        public void ShouldSucceedOnAboveMin()
        {
            // => Arrange
            var rule = new MinValidationRule(10);

            // => Act
            var result = rule.Validate(11);

            // => Assert
            Assert.True(result.Success);
        }