Best and Worst Practices for Mock Objects

http://codebetter.com/blogs/jeremy.miller/archive/...Mock objects are like any other tool. Used one way they’re a huge time saver. In other cases they can easily create more work and degrade the quality of the testing code. In this post I’ll try to present some best and worst practices for utilizing mock objects. Sadly, every “bad” practice described is something I’ve either done or seen done.

你可能感兴趣的:(请注明原文出处))