Thank you Colin for the book recommendation, it has been sitting in my
amazon basket for a while now. Got a few others to read first.
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Colin Jack"
<colin.jack@...> wrote:
>
> > I'm still not completely sure of when you would create a stub and
> > when you would create a mock? Or whether it matters if you decide
to
> > develop one over the other. I read that mocks are behaviour based
and
> > stubs are state based, is that correct? Doesn't correct state imply
> > correct behaviour? and vice versa. Would you need to test for both,
> > is it just safer to do so?
>
> I'd recommend XUnit Test Patterns and Jimmy Bogard also has some blog
> entries on it.
>
> If you want to hear the pro-mocking view I'd see mockobjects.com or
> the document "Mock Roles, Not Objects" which has a lot of value.
>