So, carrying on with my new years resolution to get more in to TDD, I am now starting to work more with Rhino Mocks.
One thing I am keen to do is to make sure I really grok what I am getting into, so I wanted to check my understanding of what I have seen so far (and I thought it would be good to get it up here as a resource).
Martin Fowler wrote an excellent article on this subject. From that article:
To put it in my own words: mock objects ‘expect’ certain methods to be called on them, and typically cause a unit test to fail if their expectations aren’t met. Stub objects provide canned responses (and can be autogenerated by helper libraries), but typically do not directly cause the unit test to fail. They are typically just used so that the object you’re testing gets the data it needs to do its work.