Use WhenCalled ... you can use a delegate and pass the arguments from the invocation parameter and call the other method from inside the delegate ...
On 14 November 2011 10:08, hagai cohen <[email protected]> wrote: > Hi > > Assume I have method Foo(string text). > I would like to stub that method in the following way: > > when Foo is called with a parameter, to call to other method > Boo(string text) - (by using the Do method), > and to forward the input parameter to Boo method. > > can anyone help me to implement that? > > 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.
