public void Returns_error_message_with_replacements()
        {
            var requirement = new StringAtLeastRequirement(5);

            requirement.Message = "{0}#{1}";
            Assert.Equal("5#4", requirement.Check("1234").ToArray()[0].Message);
        }
        public void Returns_null_if_value_is_longer_or_equal_to_the_min_length()
        {
            var requirement = new StringAtLeastRequirement(4);

            Assert.Empty(requirement.Check("1234"));
            Assert.Empty(requirement.Check("12345"));
        }
        public void Returns_null_if_value_is_null()
        {
            var requirement = new StringAtLeastRequirement(5);

            Assert.Empty(requirement.Check(null));
        }
        public void Returns_error_if_value_is_too_short()
        {
            var requirement = new StringAtLeastRequirement(5);

            Assert.NotEmpty(requirement.Check("1234"));
        }
		public void Returns_error_message_with_replacements() {
			var requirement = new StringAtLeastRequirement(5);
			requirement.Message = "{0}#{1}";
			Assert.Equal("5#4", requirement.Check("1234").ToArray()[0].Message);
		}
		public void Returns_null_if_value_is_null() {
			var requirement = new StringAtLeastRequirement(5);
			Assert.Empty(requirement.Check(null));
		}
		public void Returns_error_if_value_is_too_short() {
			var requirement = new StringAtLeastRequirement(5);
			Assert.NotEmpty(requirement.Check("1234"));
		}
		public void Returns_null_if_value_is_longer_or_equal_to_the_min_length() {
			var requirement = new StringAtLeastRequirement(4);
			Assert.Empty(requirement.Check("1234"));
			Assert.Empty(requirement.Check("12345"));
		}