assertEventAt

Assert that this TestEventSink received an event at index which is equal to the given event.

Return

this

Parameters

index

the index of the received event to be asserted

event

the expected UiEvent to be compared to the received event at index


fun assertEventAt(index: Int, predicate: (UiEvent) -> Boolean): TestEventSink<UiEvent>(source)

Assert this TestEventSink received an event at index and that running predicate with that event returns true.

Return

this

Parameters

index

the index of the received event to be asserted

predicate

the function used to determine equality with the received event at index