Пример #1
0
        public void IsValid_With_Correct_Value()
        {
            object intObj  = 8;
            var    rngattr = new CustomRangeAttribute(3, 10);

            Assert.IsTrue(rngattr.IsValid(intObj));
        }
Пример #2
0
        public void IsValid_With_Incorrect_String()
        {
            object intObj  = 2;
            var    rngattr = new CustomRangeAttribute(3, 10);

            Assert.IsFalse(rngattr.IsValid(intObj));
        }
Пример #3
0
        public void IsValid_With_Null_Int()
        {
            object nullObj = null;
            var    rngattr = new CustomRangeAttribute(3, 10);

            Assert.IsTrue(rngattr.IsValid(nullObj));
        }