首页> 外文期刊>MSDN Magazine >Using Mocks And Tests To Design Role-Based Objects
【24h】

Using Mocks And Tests To Design Role-Based Objects

机译:使用模拟和测试设计基于角色的对象

获取原文
获取原文并翻译 | 示例

摘要

Within the realm of Test-Driven Development (tdd),rnmock objects can help you discover the roles that objects should play within a system, emphasizing how the objects relate to each rather than their internal structure. This technique can be employed to support good object-oriented design. Using mock objects as an aid to design turns out to be much more interesting than the common practice of using them simply to isolate a system from external dependencies.
机译:在测试驱动开发(tdd)领域中,rnmock对象可以帮助您发现对象应在系统中扮演的角色,强调对象与每个对象的关系,而不是其内部结构。可以采用此技术来支持良好的面向对象设计。事实证明,使用模拟对象作为设计的辅助手段比简单地使用模拟对象将系统与外部依赖项隔离的常规做法要有趣得多。

著录项

  • 来源
    《MSDN Magazine》 |2009年第6期|38-4042-4346-48|共8页
  • 作者

    Isaiah Perumalla;

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号