Ejemplo n.º 1
0
        public void MaxValueProperty_MoreAttributes()
        {
            var model = new ClassWithMaxValueProperty
            {
                MaxValueProperty = 130
            };

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

            Assert.IsFalse(result);
        }
Ejemplo n.º 2
0
        public void MaxValueProperty_LessAttributes()
        {
            var model = new ClassWithMaxValueProperty
            {
                MaxValueProperty = 30
            };

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

            Assert.IsTrue(result);
        }