Have a collaborator stand at the exit.
让一位合作者站在出口处。
We are the best collaborator forever.
我们永远是最好的合作伙伴。
This collaborator must be replaced with a mock object.
必须用模仿对象替换这个合作者。
Collaborator is the class you must mock appropriately.
Collaborator是必须正确模拟的类。
The Collaborator class constructor is still quite simple.
Collaborator类构造函数仍然十分简单。
Problem: The object being tested creates a collaborator object.
问题:正在测试的对象创建了合作者对象。
Second, the manner of mocking the Collaborator class has changed.
第二,模拟collaborator类的方式已经更改。
A typewriter was a friend and collaborator whose sickness was catastrophe.
打字机是朋友,又是伙伴,他要是生病了将是一场巨大的灾难。
I have lost my father and my friend, my business partner and collaborator.
我失去的不只是父亲,还是我的朋友,我的生意伙伴,我的合作伙伴。
If marriage is not in your plans, you may officially take on a new collaborator.
如果婚姻不在你的计划,你可能会正式接受一个新的合作者。
In your test code, create a mock object implementing the same interface as the collaborator.
在测试代码中,创建模仿对象且实现与合作者相同的接口。
The only way of instantiating the Collaborator object is to provide two simple arguments.
实例化Collaborator对象的惟一方法是提供两个简单参数。
Instead, that object is designed to either create, look up, or otherwise obtain its collaborator.
而设计该对象是为了创建、查找或获得其合作者。
Instead, that object is designed to either create, look up, or otherwise obtain its collaborator.
而设计该对象是为了创建、查找或获得其合作者。
应用推荐