为什么呢?因为该代码块指定了在测试正确的情况下,我将进行的一系列操作。
Why? Because that block identifies a set of things that I'm going to do if the test is true.
在模拟对象里添加方法,使得您的测试正确地初始化。
Add methods to the mock object that allow you to initialize it properly for your tests.
为测试正确性,您需要生成一些参考文件,以便与类的所有未来版本的输出相比较。
To test for correctness, you need to generate some reference files that you can compare to the output from all future versions of the class.
传统的功能测试不足以应对移动平台:仅仅因为某些测试正确并不意味着它的速度就满足使用要求了。
Traditional functional testing isn't enough on mobile: just because something tests correctly doesn't mean its fast enough to use.
许多人认为智能机器必然是正确和客观的,但机器是通过反复测试和评分过程来训练的。
Many people believe smart machines are necessarily correct and objective, but machines are trained through a repeated testing and scoring process.
他们相信,IQ测试是评估孩子是否适合特殊教育课程的有效方法,这是正确的。
They believed, correctly, that IQ tests are a valid method of evaluating children for special education classes.
一些评论家认为,由于目前没有关于鞭伤的客观测试,因此不能轻易识别关于鞭伤的虚假报道,这是正确的。
Some commentators have argued, correctly, that since there is presently no objective test for whiplash, spurious reports of whiplash injuries cannot be readily identified.
我们采取了适当措施,来拦截发射到测试实验室的无线电干扰信号。在此以后,我们自己测试了这次攻击,证实了使用正确设备是有可能阻断信号的。
After taking appropriate measures to contain the RF interference to our test lab, we tested the attack out for ourselves, and were able to verify that it's possible with the right equipment.
作为一个完备性测试,请测试计算机中的软盘镜像,以检查flash 是否自动运行,并应用了正确的配置。
As a sanity check, test the floppy image you have in a computer to check that the flash happens automatically and the correct settings are applied.
有时,测试会表明这个想法是不正确的。
用最小的付出得到产出,这样就能测试当初的直觉正确与否,验证想法是否可行。
Minimum effort to put something out there, so you can test out whether your intuition was right, validate your ideas.
测试您的脚本,以确认它是正确的。
因为性格测试的答案没有正确或错误之分,你不应更改你的答案。
As there are no right or wrong answers in personality tests, you can't revise for them.
它也为创建满足任何项目或组织需要的正确测试管理解决方案提供了一个灵活的框架。
It also provides a flexible framework for creating the right test management solution for any project or organization's needs.
随后可以测试这个答案并且把正确答案返回给用户。
This can then be tested and the proper answer returned to the user.
当然,大多数准确的测量来自模拟生产条件的负载测试,以正确评估这些池的大小。
Of course, the most accurate measurements come from a load test that simulates production conditions to correctly evaluate the size of these pools.
选择正确的测试用例集。
测试验证所生成代码是正确的。
要验证所有的东西是否都设置正确,让我们测试新插件。
To verify that everything is set up correctly, let's test your new plug-in.
测试还可以检查您认为正确,但是没有经过充分测试的行为。
Tests can also verify behavior that you think you have right but haven't tested enough to have confidence.
对于本文稍后要向您介绍的一个测试而言,您必须确保正确配置了测试服务器。
For one of the later tests we will take you through in this article, you must ensure the test server is configured appropriately.
清单8展示了修改后的正确的层叠测试。
我还要强调的是,放弃功能测试并不是总是正确的,因为执行功能测试很快很容易,至少低级的测试是这样的。
I will also argue that it is never all right to forgo functional testing, because it is so quick and so easy to perform, at least a minimal level of functional testing.
实验结果比较测试者能够正确判断方向的距离,发现混合型汽车要比汽油驱动汽车近65%。
The researchers found that the hybrid vehicles had to be around 65% closer to someone than a car with a petrol engine before the person could judge the direction correctly.
正确的运行测试。
例如,如果没有第二个人评审并承认这个代码(或测试)是正确的,将不允许检入任何文件。
For example, no file will be checked in without a second person reviewing and agreeing that the code (and tests) are correct. 12.
此时,重新运行前面描述的测试类会产生正确的结果。
At this point, re-running the test described previously results in the correct result.
毫无疑问,此测试是正确的,因为它已经完成了设置预期值,调用被测试的系统,调用getter和作出声明。
There's no doubt that this test is correct because all it does is set up expectations, invoke the system under test, call getters, and make assertions.
毫无疑问,此测试是正确的,因为它已经完成了设置预期值,调用被测试的系统,调用getter和作出声明。
There's no doubt that this test is correct because all it does is set up expectations, invoke the system under test, call getters, and make assertions.
应用推荐