public void IsValidShouldReturnFalseIfTheSpecifiedValueIsBiggerOrEqual()
        {
            LessThanValidator validator = new LessThanValidator(5);

            Assert.IsFalse(validator.IsValid(5));
            Assert.IsFalse(validator.IsValid(10));
        }
        public void IsValidShouldReturnFalseIfTheSpecifiedValueIsNotIComparable()
        {
            LessThanValidator validator = new LessThanValidator(5);

            Assert.IsFalse(validator.IsValid(new Dictionary<string, object>()));
            Assert.IsFalse(validator.IsValid(new List()));
        }
        public void IsValidShouldReturnTrueIfTheSpecifiedValueIsSmaller()
        {
            LessThanValidator validator = new LessThanValidator(-5);

            Assert.IsTrue(validator.IsValid(-6));
            Assert.IsTrue(validator.IsValid(-7));
        }
        public void IsValidShouldReturnFalseIfTheSpecifiedValueIsNotSameType()
        {
            LessThanValidator validator = new LessThanValidator(5);

            Assert.IsFalse(validator.IsValid("0"));
            Assert.IsFalse(validator.IsValid(5M));
            Assert.IsFalse(validator.IsValid(5F));
        }
        public void IsValidShouldReturnTrueIfTheSpecifiedValueIsNull()
        {
            LessThanValidator validator = new LessThanValidator(5);

            Assert.IsTrue(validator.IsValid(null));
        }