Thanks!!
On 20 בנוב 2011 21:39, "Patrick Steele" <[email protected]> wrote:

> The WhenCalled method accepts an Action<MethodInvocation> delegate.
> The MethodInvocation parameter provides information about the method
> that is currently being executed.  Each of the properties on the
> MethodInvocation class are documented.  Is there a particular one you
> have a question on?
>
> Here's a quick example of using it.  This will stub the MyMethod call
> to always return the first argument passed to it:
>
> foo.Stub(f => f.MyMethod(null)).IgnoreArguments().Return(null).WhenCalled(o
> => o.ReturnValue = o.Arguments[0]);
>
> ---
> Patrick Steele
> http://weblogs.asp.net/psteele
>
>
>
> On Sun, Nov 20, 2011 at 4:35 AM, hagai cohen <[email protected]>
> wrote:
> > Hi
> >
> > Can any one help me to define that handler
> > ( I need to document it for other developers here and I cannot find a
> > definition)
> >
> > 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.
>
>

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