0

I have to work with an API that uses a lot of by-reference parameters. I'm just beginning to use NMock, and I'm having trouble seeing how to make NMock actually modify one of those by-ref parameters to a specific value. Am I missing something, or does it just not do that? Is there a better way, short of wrapping this API?

scott8035
  • 424
  • 1
  • 6
  • 15

1 Answers1

1

This blog entry appears to cover things, admittedly from a C# perspective.

Basically you want to call Will() with a SetNamedParameterAction.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194