Table of Contents

Method Empty

Namespace
Xunit
Assembly
xunit.v3.assert.dll

Empty(IEnumerable)

Verifies that a collection is empty.

public static void Empty(IEnumerable collection)

Parameters

collection IEnumerable

The 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

value string

The string value to be inspected

Exceptions

ArgumentNullException

Thrown when the string is null

Thrown when the string is not empty