Пример #1
0
        public void IsLowerThan_ValueIsHigher_ThrowsException()
        {
            IntValidator validator = new IntValidator("test", 1);

            ExceptionAssert.ThrowsLowerThanValidationException("test", 0, () =>
            {
                validator.IsLowerThan(0);
            });
        }
Пример #2
0
        public void IsLowerThan_ValueEqual_ThrowsException()
        {
            IntValidator validator = new IntValidator("test", 1);

            ExceptionAssert.ThrowsLowerThanValidationException("test", 1, () =>
            {
                validator.IsLowerThan(1);
            });
        }
Пример #3
0
        public void IsLowerThan_ValueIsLower_NoException()
        {
            IntValidator validator = new IntValidator("test", 1);

            validator.IsLowerThan(2);
        }