EmptyConstraint - samuelneff/docs GitHub Wiki
EmptyConstraint tests that an object is an empty string, directory or collection.
```C# EmptyConstraint() ``` ```C# Is.Empty ``` ```C# Assert.That( aString, Is.Empty ); Assert.Thst( dirInfo, Is.Empty ); Assert.That( collection, Is.Empty ); ```- EmptyConstraint creates and uses either an EmptyStringConstraint, EmptyDirectoryConstraint or EmptyCollectionConstraint depending on the argument tested.
- A `DirectoryInfo` argument is required in order to test for an empty directory. To test whether a string represents a directory path, you must first construct a DirectoryInfo.