Hi,
There is an even simpler way:
suppose we have the following method:
void MyMethod(ref int arg)
we want to mock arg to output 10 and our custom checker is called Check
Here is the code.
myMock.ExpectCall("MyMethod").Args(
// set arg to 10
new Assign(10).AndCheck(
// invoke custom checker
new ParameterCheckerEx(Check)));