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