Thank you David.
The first method still gives me the error: The best overloaded
method for ... has some invalid arguments.
However the second method does compile, (without parentheses after
Anything), and it also works.

Thanks a lot.

On Mar 13, 2:59 am, David Tchepak <[email protected]> wrote:
> Hi Tavi,
>
> I haven't tested this, but try:
>
>   Expect.Call(dispatcher.Add(Arg<Request>.Is.Anything()l))
>
> I normally use the AAA syntax, where the equivalent would be:
>
>   dispatcher.AssertWasCalled(x => x.Add(Arg<Request>.Is.Anything());
>
> Hope this helps.
> Regards,
> David
>
> On Sat, Mar 13, 2010 at 4:18 AM, tavi <[email protected]> wrote:
> > Hello,
>
> > I'm new at this and unfortunately I already got to a standstill.
>
> > I have some overloaded methods.
>
> > And I want to check if one of them has been called:
>
> > Expect.Call(dispatcher.Add(null)) gives an Error: The call is
> > ambiguous between the methods
>
> > using :
>
> > Expect.Call(dispatcher.Add((Request)null)) gives: The best overloaded
> > method for ... has some invalid arguments.
>
> > I can imagine this is simple but somehow I cannot get over it.
>
> > Thanks
>
> > --
> > 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]<rhinomocks%[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