Rhino Mocks Events: Twisting the Syntax
Okay, so
IEventRaiser loadRaiser = new EventRaiser((IMockedObject)mockedView, "Load");
It is this:
Basically, it is reversing the syntax a bit, since it is actually the "register to event" syntax, but we can use that to raise events in a fairly natural way, without resorting to strings.
I am not sure if the sytnax is clear enough, so I wanted to ask, what would you rather have?