every

Starts defining an answer for a single regular function call specified by block. Returned scope allows defining answer.

Provided block must be a lambda and single mock call must occur directly inside it. Extracting block content to functions is prohibited.


Starts defining an answer for a regular function call with any arguments. Returned scope allows defining answer.

Given function must be a regular (not suspend) function reference bound to a mock object.