public void CanApplyDecimalMaxAttribute()
        {
            var validator = GetClassValidator(typeof(FooDecimalMax));

            var testCase1 = new FooDecimalMax { DecimalValue = 1.01m };
            validator.GetInvalidValues(testCase1).Should().Be.Empty();

            var testCase2 = new FooDecimalMax { DecimalValue = 2.01m };
            validator.GetInvalidValues(testCase2).Should().Not.Be.Empty();
        }
        public void CanApplyDecimalMinAttribute()
        {
            var validator = GetClassValidator(typeof(FooDecimalMax));

            var testCase1 = new FooDecimalMax {
                DecimalValue = 1.01m
            };

            validator.GetInvalidValues(testCase1).Should().Be.Empty();

            var testCase2 = new FooDecimalMax {
                DecimalValue = -2.01m
            };

            validator.GetInvalidValues(testCase2).Should().Not.Be.Empty();
        }