Table of Contents

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

collection IEnumerable

The collection to be inspected

Exceptions

ArgumentNullException

Thrown when a null collection is passed

Thrown when the collection is empty