CountExtensions.NotHaveCount Method
Definition
Asserts that the enumerable does not have the specified number of elements.
public static ObjectAssertionsChain<T> NotHaveCount<T>(this ObjectAssertions<T> assertions, int expectedCount)
where T : IEnumerable;
Type Parameters
| Name | Description |
|---|---|
| T | The type of the enumerable. |
Parameters
| Name | Type | Description |
|---|---|---|
| assertions | ObjectAssertions<T> | The assertions object. |
| expectedCount | Int32 | The number of elements that is not expected. |
Returns
An ObjectAssertionsChain<T> for chaining further assertions.