>
> Curious about people's preference. Which would you prefer to a) read b)
> write ?
>
> 1. mockViewEngine.Stub(x =>
> x.FindView(Arg<ControllerContext>.Is.Anything, Arg<string>.Is.Anything,
> Arg<string>.Is.Anything, Arg<bool>.Is.Anything)).Return(...);
> 2. mockViewEngine.Stub(x => x.FindView(null,
> null,null,false)).IgnoreArguments().Return()
>
> Personally I prefer 1 but I would format it differently. We use StyleCop,
so unless you want one long line you're forced to split it with one argument
on each line. I like to see the types of the arguments, especially when
they're null.
mockViewEngine.Stub(x => x.FindView(
Arg<ControllerContext>.Is.Anything,
Arg<string>.Is.Anything,
Arg<string>.Is.Anything,
Arg<bool>.Is.Anything))
.Return(...);
Iain
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---