suspendCall
Returns an assert that asserts on the result of the given suspend call.
Parameters
name
The name of the suspend function you are calling.
extract
The suspend function to extract the property value out of the value of the current assert.
assertThat(person).suspendCall("name()", { it.name() }).isEqualTo("Sue")
Content copied to clipboard