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

Definition

Assembly HeadlessTestingFramework.dll

Waits for a collection to have at least a certain count.

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

Type parameters

T
The element type.

Parameters

getCollection
Func<IEnumerable<T>>

Function to get the collection.

minimumCount
Int32

The minimum required count.

message
String

Optional message for timeout exception.

Returns