Mocker.lastCall

Returns ExpectationSetup object for most recent call on a method of a mock object.

This object allows you to set various properties of the expectation, such as return value, number of repetitions or matching options.

class Mocker
lastCall
()

Examples

Mocker mocker = new Mocker;
Object obj = mocker.Mock!(Object);
obj.toString;
mocker.LastCall().returns("hello?");

Meta