I am writing unit tests and I need to mock the out parameter of the one of the target method dependencies with the following signature:
bool TryProcessRequest(out string)
I am using JustMock and I have tried to use DoInstead arrangement clause, but it seems that it is not so obvious.
Please advise me how to achieve this, many thanks in advance.
This option will probably suit you:
So for this you need to create a local variable with the desired value and use that in the out position.