You're testing a fake aspect against a fake object.
对一个假的对象测试假的方面。
Sometimes all I want is a fake object that implements the same interface and can answer some specific questions about how I interact with it in a test.
有时我所希望的是一个伪对象,它实现了与真实对象相同的接口,可以回答关于我在测试中如何与它交互这样一些特定问题。
That's what a sham object is — a lightweight way to fake things out in your tests.
这就是伪对象—一种用来伪装测试中对象的轻量型方式。
Kent Beck describes a mock object as a testing object, one that implements a fake version of an expensive or complicated resource by answering constants.
KentBeck将模拟对象描述为测试对象,该对象可以使用常量进行响应,从而实现开销大或复杂的资源的模仿版本。
A mock is a "fake" object that allows you to focus on testing important features within the scope of the Rails project, rather than on interactions with external systems that you have no control over.
mock是一个“伪”对象,它让我们能够集中精力测试Rails项目范围内的重要特性,而不必关注与无法控制的外部系统的交互。
Before publishing the package to IBM Cognos BI, ensure that the fake fact is included in the package as a hidden object.
在向IBMCognosBI发布包以前,确保伪事实作为隐藏对象包含在包中。
This kind of mock object is sometimes called a fake.
这种mock对象有时候称为fake。
And in the case when any object would do, such as something that could act as a paperweight, the children brought either the fake one or the real one.
而且,在任一物体都能起作用的时候,例如能充当书镇的物体,孩子们会二者择一。
The problem is often not just whether it is genuine or fake, but what has subsequently been done to the object.
问题不在于这件东西的真伪,而在于接下来对它采取了什么措施。
It can identify the parameters of a controlled object by forming a fake output and bring in a feedback error for performing an on-line training to decouple the neural network.
它通过构造伪输出辨识被控对象参数,引进反馈误差,实现对解耦神经网络的在线训练。
It can identify the parameters of a controlled object by forming a fake output and bring in a feedback error for performing an on-line training to decouple the neural network.
它通过构造伪输出辨识被控对象参数,引进反馈误差,实现对解耦神经网络的在线训练。
应用推荐