If you add .Once() after the return value for the first value and add a second line to define the second value:
For an example check out this link: http://lostechies.com/derickbailey/2010/05/04/rhino-mocks-recursion-and-multiple-return-values-from-stubs/ Iain On 24 October 2011 12:01, hagai cohen <[email protected]> wrote: > hi > I have the following scenario: > > There is the method that I would like to test. > That method call to another method by dependent interface. > and this is the interface I am mocking. > > I need that during the test that mock method will be called twice. > in each time it will return different values. > how do I mock it with Rhino ? > > thanks > > hagai > > -- > 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.
