expectInternalState

suspend fun expectInternalState(expectedChange: INTERNAL_STATE.() -> INTERNAL_STATE)(source)

Awaits for an internal state and checks if it matches the expected internal state change from the previous internal state.

Parameters

expectedChange

The expected change from the previous internal state.

Throws

if internal state does not match the expected change.


suspend fun expectInternalState(expected: INTERNAL_STATE)(source)

Awaits for an internal state and checks if it matches the expected internal state.

Parameters

expected

The expected internal state.

Throws

if internal state does not match the expected internal state.