Hey guys, I read the http://www.ayende.com/wiki/Rhino+Mocks+Events.ashx article and it seems that i can tell the strict mock object's event that a registration is fired by anything using this:
view = MockRepository.GenerateStrictMock<IView>(); view.ClickEvent += null; In an act phase a presenter will actually runs a code in presenter.AttachView() that will register a click handler. What i have been getting is a Rhino.Mocks.Exceptions.ExpectationViolationException() for some reason on the line view.ClickEvent += null; ... I want to use a strict mock to verify that only a certain method was invoked on the view mock and nothing else. Anyone dealt with this issue? -- 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.
