This is a repost of some one else's question on StackOverflow (http://
stackoverflow.com/questions/4116361/stub-property-setter-with-rhino-
mocks-to-execute-an-action-when-called), but I did not see a workable
AAA answer there so I am hoping for a better response here.
How do you correctly do the following:
_view = MockRepository.GenerateMock<IMyGridView>();
_view.Stub(v => v.FilterCriteria == null).IgnoreArguments()
.WhenCalled( ... do something ... );
In my case I am trying to do this because I need to assert a correctly
ordered sequence of actions taken on the view, one of which is a call
to set the FilterCriteria.
--Regards,
Ken
--
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.