Skip to content

StringAssertions.NotBeNullOrWhiteSpace Method ​

Definition ​

Asserts that the string is not null, empty, or consisting only of white-space characters.

c#
public AssertionsChain<StringAssertions, string> NotBeNullOrWhiteSpace();

View source

Returns ​

AssertionsChain<StringAssertions, String>

An AssertionsChain<TAssertions, T> for chaining further assertions.