I have a presenter class, that attaches an event of the injected view. Now I would like to test the presenter reacting on correctly on the event.
This is the view in
Don't you need to pass the argument? Your event signature is EventHandler, which is (object sender, EventArgs e).
EventHandler
(object sender, EventArgs e)
this.mockView.Raise(mock => mock.MyEvent += null, new EventArgs());
I've never used the overload you've specified here... it doesn't seem correct, though.