TestResult
Contains the captured streams and provides assertion methods for test validation.
TestResult is provided as the receiver in test assertion blocks and gives access to all data and effects that were emitted during test execution. It provides various methods for finding, filtering, and asserting on the captured transmissions.
Parameters
List of all data transmissions captured during test execution
List of all effect transmissions captured during test execution
Functions
Returns all effect transmissions of the specified type.
Finds all data transmissions of the specified type that match the predicate.
Finds all effect transmissions of the specified type that match the predicate.
Finds the first effect transmission of the specified type that matches the predicate.
Checks if any data transmission of the specified type exists in the captured stream.
Checks if any effect transmission of the specified type exists in the captured stream.
Returns the last data transmission of the specified type.
Returns the last data transmission of any type.
Returns the last effect transmission of the specified type.
Returns the last effect transmission of any type.
Returns the data transmission at the specified index.
Returns the effect transmission at the specified index.