asyncAssertProxy

suspend fun asyncAssertProxy(action: suspend KMockContract.CloseableAssertionContext.() -> Unit)

Asserts Expectations of proxies in Coroutine Context. Each Expectation relates to a specific Proxy and they must be in order. Also multiple Proxies are allowed but no relation between them is covered (use assertOrder in this case). Use that context only in combination with proxy access methods.

Author

Matthias Geisler

See also

Parameters

action

Expectation Methods.

Throws

AssertionError

if given criteria are not met.