This is a complicated use case, because it combines matching by value, an out argument and a non-accessible parameter type.
The current API is not expressive enough to cover this case properly, but you can use the available primitives to get the desired behavior:
result) => name == mockName)
result = mockResult;
So, using the .When() clause, you can hide the private type behind an object. This approach will only work if there is a single method named MethodToMock. If there are overloads, you will need to obtain the MethodInfo for that method and pass that in place of the method name in the Arrange.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items