答案是mock对象。
Verify consistency in the mock objects.
验证模仿对象中的一致性。
Set state and expectations in the mock objects
设置模仿对象中的状态和期望值
Two gotchas on mock objects before we proceed.
在我们继续之前,关于mock对象有两点需要知道。
At first, mock objects can seem quite daunting.
一开始,模拟对象看上去令人生畏。
Note: If you need an introduction to mock objects, see Resources.
注:如果需要对mock对象的介绍,请参阅参考资料。
Finally, mock objects help remove large dependencies from a test.
最后,mock对象有助于从测试中消除依赖项。
In particular, my design employed mock objects to make testing easier.
尤其是,我的设计利用了模仿对象来简化测试。
We will also present some techniques for creating mock objects quickly.
我们还提供了一些快速创建模拟对象的技术。
We will create mock objects for these two services later in this article.
在本文稍后的部分中我们将创建这两个服务的模拟对象。
Let's look at the first two objections before we delve into mock objects.
在深入探讨模拟对象之前,让我们先来看一下以下两点异议。
This is accomplished with the common testing pattern known as mock objects.
这通过名为模拟对象的常见测试模式实现。
Our test code, specifically the mock objects, give us total control over the database results.
我们的测试代码,特别是模拟对象,使我们能完全控制数据库结果。
Mock objects and mock object controllers.
模拟对象和模拟对象控制器。
Mock objects provide a way out of this dilemma.
模仿对象提供了解决这一困难的方法。
As you'll see in the Testing section, a mock-objects approach perfectly matches the goal.
正如您在测试一节看到的,模仿对象方法完全满足该目标。
As you'll see in the Testing section, a mock-objects approach perfectly matches the goal.
正如您在测试一节看到的,模仿对象方法完全满足该目标。
应用推荐