Alex,

Thanks for the feedback.  A few questions though

   1. "...for someone not familiar I reckon (a) is better" -- what leads you
   to this conclusion?  I curious about this.
   2. Why Arg.Ignore? Shorter?



On Thu, Sep 24, 2009 at 8:55 AM, Alex McMahon <[email protected]> wrote:

>
> I prefer to write (b) and as someone who knows Rhino Mocks I prefer to
> read (b) as well, for someone not familiar I reckon (a) is better.
>
> If it was possible I'd like to have:
> mockViewEngine.Stub(x => x.FindView(Arg.Ignore, Arg.Ignore,
> Arg.Ignore, Arg.Ignore)).Return(...);
>
> 2009/9/24 Tim Barcz <[email protected]>:
> > Curious about people's preference.  Which would you prefer to a) read b)
> > write ?
> >
> > mockViewEngine.Stub(x => x.FindView(Arg<ControllerContext>.Is.Anything,
> > Arg<string>.Is.Anything, Arg<string>.Is.Anything,
> > Arg<bool>.Is.Anything)).Return(...);
> > mockViewEngine.Stub(x => x.FindView(null,
> > null,null,false)).IgnoreArguments().Return()
> >
> > --
> > Tim Barcz
> > Microsoft ASPInsider
> > http://timbarcz.devlicio.us
> > http://www.twitter.com/timbarcz
> >
> >
> > >
> >
>
> >
>


-- 
Tim Barcz
Microsoft ASPInsider
http://timbarcz.devlicio.us
http://www.twitter.com/timbarcz

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