Skip to content

CountExtensions.BeEmpty Method ​

Definition ​

Asserts that the enumerable is empty.

c#
public static AssertionsChain<TAssertions, T> BeEmpty<TAssertions, T>(this ObjectAssertions<TAssertions, T> assertions)
   where TAssertions : ObjectAssertions<TAssertions, T>
   where T : IEnumerable;

View source

Type Parameters ​

NameDescription
TAssertionsThe type of the assertions object.
TThe type of the enumerable.

Parameters ​

NameTypeDescription
assertionsObjectAssertions<TAssertions, T>The assertions object.

Returns ​

AssertionsChain<TAssertions, T>

An AssertionsChain<TAssertions, T> for chaining further assertions.