Skip to content

CountExtensions Class

Definition

Extension methods that provide count-related assertions for enumerables.

public static class CountExtensions

Methods

Name Description
BeEmpty<T>(ObjectAssertions<T>) Asserts that the enumerable is empty.
HaveCount<T>(ObjectAssertions<T>, Int32) Asserts that the enumerable has the specified number of elements.
NotBeEmpty<T>(ObjectAssertions<T>) Asserts that the enumerable is not empty.
NotHaveCount<T>(ObjectAssertions<T>, Int32) Asserts that the enumerable does not have the specified number of elements.