Description
File: TUnit.Assertions/Conditions/StringAssertions.cs (Lines 506-514)
The StringIsNotEmptyAssertion expectation message says "to not be empty or whitespace" but the code only checks !string.IsNullOrEmpty(value). This allows whitespace-only strings like " " to pass.
Impact
Misleading — developers might assume .IsNotEmpty() rejects whitespace strings.
Suggested Fix
Either:
- Fix the expectation message to say "to not be null or empty" (matching actual behavior)
- Or implement
.IsNotNullOrWhitespace() as a separate assertion and fix this one's message