I have an interface like this:
interface IView
{
event EventHandler<MyEventArgs> SomeEvent;
}
and class
class Presenter
{
private IView _view;
public Presenter(IView view)
{
view.SomeEvent += MyEventHandler;
}
private MyEventHandler(...)
}
I am trying to check this stuff with RhinoMocks and MockRepository.VerifyAll () throws the following exception
Rhino.Mocks.Exceptions.ExpectationViolationException: IView.add_SomeEvent (System.EventHandler`1 [MyEventArgs]); Expected # 1, Actual # 0.
So the question is:
How to add the expectation that the event is signed?
source
share