public void When_calling_PassThroughNonNullNorEmptyNorWhitespace_with_whitespace_values_should_throw_ArgumentWhitespaceException(string testValue)
 {
     AssertThatThrows <ArgumentWhitespaceException>(() => _ = StringGuardiansExtension.PassThroughNonNullNorEmptyNorWhitespace(testValue));
 }
 public void When_calling_PassThroughNonNullNorEmptyNorWhitespace_with_non_whitespace_values_should_return_input_as_output(string testValue)
 {
     AssertThatReturnsInputAsOutput(() => StringGuardiansExtension.PassThroughNonNullNorEmptyNorWhitespace(testValue), testValue);
 }
 public void When_calling_PassThroughNonNullNorEmptyNorWhitespace_with_non_empty_values_should_not_throw(string testValue)
 {
     AssertThatDoesNotThrow(() => _ = StringGuardiansExtension.PassThroughNonNullNorEmptyNorWhitespace(testValue));
 }
        public void When_calling_PassThroughNonNullNorEmptyNorWhitespace_with_whitespace_values_with_custom_argumentName_and_custom_message_exception_properties_should_match(string testValue)
        {
            const string testValueParamName = nameof(testValue);

            AssertThatExceptionParamNameAndMessageShouldMatch <ArgumentWhitespaceException>(() => _ = StringGuardiansExtension.PassThroughNonNullNorEmptyNorWhitespace(testValue, testValueParamName, TestCustomExceptionMessage), testValueParamName, TestCustomExceptionMessage);
        }
 public void When_calling_PassThroughNonNullNorEmptyNorWhitespace_with_whitespace_values_with_custom_message_exception_message_should_match(string testValue)
 {
     AssertThatExceptionMessageShouldMatchCustomMessage <ArgumentWhitespaceException>(() => _ = StringGuardiansExtension.PassThroughNonNullNorEmptyNorWhitespace(testValue, message: TestCustomExceptionMessage));
 }
        public void When_calling_PassThroughNonNullNorEmptyNorWhitespace_with_whitespace_values_exception_argumentName_and_message_should_match_default(string testValue)
        {
            testValue.ThrowIfNull(nameof(testValue));

            var defaultMessage = string.Format(CultureInfo.InvariantCulture, FlabIt.Guardians.Properties.Resources.Exception_ArgumentOfTypeXOnlyWhitespaceMessageWithParamName, DefaultArgumentName, typeof(string).FullName);

            AssertThatExceptionParamNameAndMessageShouldMatchDefaultArgumentName <ArgumentWhitespaceException>(() => _ = StringGuardiansExtension.PassThroughNonNullNorEmptyNorWhitespace(testValue), defaultMessage);
        }
        public void When_calling_PassThroughNonNullNorEmptyNorWhitespace_with_empty_values_with_custom_argumentName_exception_argumentName_should_match(string testValue)
        {
            const string testValueParamName = nameof(testValue);

            AssertThatExceptionParamNameShouldMatchCustomArgumentName <ArgumentEmptyException>(() => _ = StringGuardiansExtension.PassThroughNonNullNorEmptyNorWhitespace(testValue, testValueParamName), testValueParamName);
        }