Quantcast
Channel: Fluent Assertions
Viewing all articles
Browse latest Browse all 1402

Commented Issue: Add BeNullOrWhiteSpace() & NotBeNullOrWhiteSpace() [11016]

$
0
0
Duplicate the current BeNullOrEmpty() & NotBeNullOrEmpty() but test for NullOrWhiteSpace.

Example.

string actual = "ABCDEFGHI";
actual.Should().NotBeNullOrWhiteSpace() // does not throw exception.

string actual = " ";
actual.Should().NotBeNullOrWhiteSpace() // does throw exception.
Comments: ** Comment from web user: dennisdoomen **

You're right. Unfortunately, .NET 3.5 doesn't support IsNullOrWhiteSpace, so I'll need to code it explicitly.


Viewing all articles
Browse latest Browse all 1402

Trending Articles