Пример #1
0
        public void Should_Be_Max_Flase(object value)
        {
            var attr = new MaxLenghtAttribute(2);

            Assert.False(attr.IsValid(value));
        }
Пример #2
0
        public void Should_Be_Max_True(object value)
        {
            var attr = new MaxLenghtAttribute(4);

            Assert.True(attr.IsValid(value));
        }