Mike and Gabriel both posted comments to show how the Cowhand example in my last post might look and evolve with different mocking frameworks. They’ve used FluentSpec and Rhino Mocks respectively.
Thanks, Mike and Gabriel! It was a pleasure to find these snippets waiting.
Also, Olof suggested that I include something a little less farm-related, so I’ve added another example with Mockito*, too. Thanks, Olof!
*Mockito’s syntax is now even better than this, but this is the syntax I’m used to.