Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/Nuke.Utilities/Assert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static string NotNullOrEmpty(
}

/// <summary>
/// Asserts that the string is not <c>null</c> or has only whitespace characters with an optional exception message. If no message is provided, the argument expression is used.
/// Asserts that the string is not <c>null</c>, empty or has only whitespace characters with an optional exception message. If no message is provided, the argument expression is used.
/// </summary>
[ContractAnnotation("str: null => halt")]
public static string NotNullOrWhiteSpace(
Expand All @@ -128,7 +128,7 @@ public static string NotNullOrWhiteSpace(
string argumentExpression = null)
{
if (string.IsNullOrWhiteSpace(str))
throw new ArgumentException(message ?? "Expected string to be not null or whitespace", message == null ? argumentExpression : null);
throw new ArgumentException(message ?? "Expected string to be not null, empty or whitespace", message == null ? argumentExpression : null);
return str;
}

Expand Down