diff --git a/Synergy.Contracts/Failures/FailNullability.cs b/Synergy.Contracts/Failures/FailNullability.cs index 0b734c0..ec23da2 100644 --- a/Synergy.Contracts/Failures/FailNullability.cs +++ b/Synergy.Contracts/Failures/FailNullability.cs @@ -89,7 +89,7 @@ [CanBeNull] [AssertionCondition(AssertionConditionType.IS_NOT_NULL)] object argu } /// - /// Template for expanding Fail.IfArgumentNull(argument, nameof(argument)); + /// Template for expanding Fail.IfArgumentNull(argument, nameof(argument)); /// Type argument.fian and press TAB and let Resharper complete the template. /// /// Value of the argument to check against being . diff --git a/Synergy.Contracts/Failures/FailString.cs b/Synergy.Contracts/Failures/FailString.cs index 34670d2..e158473 100644 --- a/Synergy.Contracts/Failures/FailString.cs +++ b/Synergy.Contracts/Failures/FailString.cs @@ -26,7 +26,7 @@ public static void IfArgumentEmpty( } /// - /// Template for expanding Fail.IfArgumentEmpty(argument, nameof(argument)); + /// Template for expanding Fail.IfArgumentEmpty(argument, nameof(argument)); /// Type argument.fiae and press TAB and let Resharper complete the template. /// /// Value of the argument to check against or emptiness. @@ -79,6 +79,19 @@ public static void IfArgumentWhiteSpace( throw Fail.Because("Argument '{0}' was empty.", argumentName); } + /// + /// Template for expanding Fail.IfArgumentWhiteSpace(argument, nameof(argument)); + /// Type argument.fiaw and press TAB and let Resharper complete the template. + /// + /// Value of the argument to check. + [SourceTemplate] + [UsedImplicitly] + // ReSharper disable once InconsistentNaming + public static void fiaw([CanBeNull] this string argumentValue) + { + Fail.IfArgumentWhiteSpace(argumentValue, nameof(argumentValue)); + } + /// /// Throws exception if the specified value is or white space. ///