Method NotEmpty
- Namespace
- Xunit
- Assembly
- xunit.v3.assert.dll
NotEmpty(IEnumerable)
Verifies that a collection is not empty.
public static void NotEmpty(IEnumerable collection)
Parameters
collectionIEnumerableThe collection to be inspected
Exceptions
- ArgumentNullException
Thrown when a null collection is passed
Thrown when the collection is empty