public void TestValidateNegative()
        {
            // arrange
            const string testString      = "MyString";
            var          lengthValidator = new ExactLengthValidator(testString.Length + 1);

            Assert.ThrowsException <ExactLengthException>(() => StringValidator.TestValidateNegative(lengthValidator, testString));
        }
 public void TestValidateNegative()
 {
     Assert.ThrowsException <RepeatingCharactersException>(() => StringValidator.TestValidateNegative(_nonRepeatablesValidator, "ABAD"));
 }
 public void TestValidateNegative()
 {
     Assert.ThrowsException <AlphanumericException>(() => StringValidator.TestValidateNegative(_alphanumericValidator, "A!C)D"));
 }