|
From: Andrey S. <as...@gm...> - 2007-10-13 20:49:39
|
On 10/14/07, Steve Mitcham <Ste...@ty...> wrote:
> That's why I used 'Cause' instead of set, I'm pretty sure that set
> isn't a collision in any namespace. Importing the NMock2 namespace is
> just a convenience. There's nothing from stopping anyone from not
> 'using' the NMock2 namespace and typing:
>
> NMock2.Cause.Parameter(1).ToBe("Foo");
>
> I do, however, want to avoid obvious collisions like 'Set'
What about Change.Parameter(1).To("Foo")?
I think ToBe is harder than To to type and to remember.
And is there actually a need to group event raising and parameter
changing in single class? These concepts seem quite unrelated to me.
|