Skip to content
Merged
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
8 changes: 4 additions & 4 deletions TUnit.Assertions/Conditions/StringAssertions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ protected override Task<AssertionResult> CheckAsync(EvaluationMetadata<string> m
}

/// <summary>
/// Asserts that a string is not empty or whitespace.
/// Asserts that a string is not null or empty.
/// </summary>
[AssertionExtension("IsNotEmpty")]
public class StringIsNotEmptyAssertion : Assertion<string>
Expand Down Expand Up @@ -511,11 +511,11 @@ protected override Task<AssertionResult> CheckAsync(EvaluationMetadata<string> m
return Task.FromResult(AssertionResult.Failed($"found \"{value}\""));
}

protected override string GetExpectation() => "to not be empty or whitespace";
protected override string GetExpectation() => "to not be null or empty";
}

/// <summary>
/// Asserts that a string is empty or whitespace.
/// Asserts that a string is empty.
/// </summary>
[AssertionExtension("IsEmpty")]
public class StringIsEmptyAssertion : Assertion<string>
Expand Down Expand Up @@ -549,7 +549,7 @@ protected override Task<AssertionResult> CheckAsync(EvaluationMetadata<string> m
return Task.FromResult(AssertionResult.Failed($"found \"{value}\""));
}

protected override string GetExpectation() => "to be empty or whitespace";
protected override string GetExpectation() => "to be empty";
}

/// <summary>
Expand Down
Loading