EmptyConstraint - jnm2/nunit-docs-wiki GitHub Wiki

EmptyConstraint tests that an object is an empty string, directory or collection.

Constructor

EmptyConstraint()

Syntax

Is.Empty

Examples of Use

Assert.That(aString, Is.Empty);
Assert.That(dirInfo, Is.Empty);
Assert.That(collection, Is.Empty);

Notes:

⚠️ **GitHub.com Fallback** ⚠️