public void NotEqualsAttributeShouldFailIfStringRepresentationsAreSame()
        {
            var equals = new NotEqualsAttribute(2);

            var validator = equals.GetValidator(Container);
            validator.Validate(ValidationContext, "2");

            Assert.IsFalse(ValidationContext.IsValid);
        }
        public void NotEqualsAttributeShouldWorkFineWithNulls()
        {
            var equals = new NotEqualsAttribute(null);

            var validator = equals.GetValidator(Container);
            validator.Validate(ValidationContext, null);

            Assert.IsFalse(ValidationContext.IsValid);
        }
        public void NotEqualsAttributeShouldSucceedIfStringRepresentationsAreDifferent()
        {
            var equals = new NotEqualsAttribute(2);

            var validator = equals.GetValidator(Container);
            validator.Validate(ValidationContext, "3");

            Assert.IsTrue(ValidationContext.IsValid);
        }