In particular, my design employed mock objects to make testing easier.
尤其是,我的设计利用了模仿对象来简化测试。
There are many unit testing frameworks available today that use mock containers for testing.
目前有许多单元测试框架使用模拟容器来执行测试。
As you'll see in the Testing section, a mock-objects approach perfectly matches the goal.
正如您在测试一节看到的,模仿对象方法完全满足该目标。
Mock objects are very popular and common approach to a unit testing. According to Wikipedia
对象模仿是一种非常流行和通用的单元测试方式。
The common coding style for testing with mock objects is to.
使用模仿对象进行测试的常用编码样式是。
For example, we can mock out the email delivery method in our testing environment.
例如,我们可以在测试环境中用mock模拟电子邮件发送方法。
This is accomplished with the common testing pattern known as mock objects.
这通过名为模拟对象的常见测试模式实现。
The word mock on the other hand is reserved for interaction testing.
而mock这个词则是保留给交互测试的。
Testing with complex dependencies? Use a mock object.
测试带有复杂的依赖性?
In unit testing language, this is called a mock object (see Resources for more information).
按照单元测试的术语,这称为模拟对象(mock object),更多信息参见参考资料中的链接。
In unit testing language, this is called a mock object (see Resources for more information).
按照单元测试的术语,这称为模拟对象(mock object),更多信息参见参考资料中的链接。
应用推荐