When the method which matches this expectation is called execute the given delegate. The delegate's signature must match the signature of the called method. If it does not, an exception will be thrown. The called method will return whatever the given delegate returns.
Allow providing custom argument comparator for matching calls to this expectation.
Ignore method argument values in matching calls to this expectation.
Instead of returning or throwing a given value, pass the call through to the mocked type object. For mock***PassTo(obj) obj has to be valid for this to work.
This expectation must match to at least min number of calls and at most to max number of calls.
This expectation will match exactly i times.
This expectation will match to any number of calls.
Set the value to return when method matching this expectation is called on a mock object.
When the method which matches this expectation is called, throw the given exception. If there are any actions specified (via the action method), they will not be executed.
An ExpectationSetup object allows you to set various properties of the expectation, such as: - what action should be taken when method matching expectation is called - return value, action to call, exception to throw, etc