摘要: The term 'Mock Objects' has become a popular one to describe special case objects that mimic real objects for testing. Most language environments now have frameworks that make it easy to create mock objects. What's often not realized, however, is that mock objects are but one form of special case test object, one that enables a different style of testing. In this article I'll explain how mock objects work, how they encourage testing based on behavior verification, and how the community around th 阅读全文
posted @ 2017-10-26 20:31 CobbLiu 阅读(267) 评论(0) 推荐(0) 编辑