How to Use Rhino Mocks/Out and Ref Parameters

Both out and ref parameters are supported.

At the end of the Expect statement, add .OutRef(outOrRefParam0, outOrRefParam1,...) as shown below.

Or, if you are using lambda-style expectations:

The variables/objects in OutRef have the same order as for the method call, ignoring any parameters that are not out or ref.