I'm trying to call an event from my mocked object. I'm doing it like:
importObject.Raise(x => x.RequestImportLevel += null, false, false, true, importLevel);
the last parameter required to be passed by reference. So, i'm getting an exception
Parameter #4 is System.Int16 but should be System.Int16&
What can I do to handle this?
If the problem is in Rhino Mocks - are there any other frameworks that cleanly support this out-of-the-box?