I need to use when/do feature which is different over different calls.
In the documentation there is an example, and the description which says, that the "Do" corresponds to "Returns" method for non-void methods. So I'd expect that it would be possible to use it this way:
var foo = Substitute.For<IFoo>();
foo.When(x => x.SayHello("World"))
.Do(x => { throw new Exception;}, x => {return counter++; });
However, "Do" function doesn't accept multiple parameters. Do you plan to implement this feature? How can I achieve this functionality in a neat way?
Thanks,
Lukasz