I\'m curious as to what method people like to use for mocking and why. The two methods that I know of are using hard coded mock objects and a mocking framework. To
I tend to write stubs and mocks by hand, first. Then if it can be easily expressed using a mock object framework, I rewrite it so that I have less code to maintain.