ForCountAsync(Func<IEnumerable>, Int32, String?) Method

Definition

Assembly HeadlessTestingFramework.dll

Waits for a collection to have a specific count.

public Task ForCountAsync<T>(Func<IEnumerable<T>> getCollection, int expectedCount, string? message = null)

Type parameters

T
The element type.

Parameters

getCollection
Func<IEnumerable<T>>

Function to get the collection.

expectedCount
Int32

The expected count.

message
String

Optional message for timeout exception.

Returns