Example #1
0
        public void MinValueProperty_MoreAttributes()
        {
            var model = new ClassWithMinValueProperty
            {
                MinValueProperty = 30
            };

            var result = (new Validator()).IsValidate(model);

            Assert.IsTrue(result);
        }
Example #2
0
        public void MinValueProperty_LessAttributes()
        {
            var model = new ClassWithMinValueProperty
            {
                MinValueProperty = -1
            };

            var result = (new Validator()).IsValidate(model);

            Assert.IsFalse(result);
        }