Hi,
I'm consuming a 3rd party library which exposes an event on an
interface consisting of a ref parameter in the signature. It looks
like a crappy implementation of CancelEventHandler, with the delegate
signature looking something like (names have been changed):
void TaskCompletingEventHandler (TaskObjectType object, ref bool
cancel)
When I try to raise this event in my mock object like this:
_mockTaskInitiator.Raise(e => e.OnTaskCompleting += null,
_mockTaskInitiator, false)
I get an error claiming that "Parameter #2 is System.Boolean but
should be System.Boolean&". I can't pass the bool into Raise as a ref
parameter because the signature of Raise doesn't accept a ref
argument.
Any ideas?
Thanks,
Xerx
--
You received this message because you are subscribed to the Google Groups
"Rhino.Mocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rhinomocks?hl=en.