Could you show a little more code of exactly what you're doing -- like
the IView definition, the presenter and the unit test?  It would help
put all the pieces together.

---
Patrick Steele
http://weblogs.asp.net/psteele



On Thu, May 6, 2010 at 6:03 PM, rroman81 <[email protected]> wrote:
> 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.
>
>

-- 
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.

Reply via email to