为什么呢?因为该代码块指定了在测试正确的情况下,我将进行的一系列操作。
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.
如果您依赖它,那么在安装或初始化期间运行小测试来确保它能正确工作,这样做将是明智的。
If you depend on it, it's wise to run a small test during installation or initialization to make sure it works correctly.
这种工作中非常关键的一个部分是在部署并执行所有测试方案之前收集正确的数据。
A very critical component in this exercise is gathering the right data prior to deployment to execute all the test scenarios.
因为性格测试的答案没有正确或错误之分,你不应更改你的答案。
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.
例如,实际上如果不允许一个程序从文件系统进行读和写,很难测试它是否正确使用了该文件系统。
For example, it is difficult to test whether a program is making proper use of the filesystem without actually allowing it to read and write from the filesystem.
要获得这个工作空间所有的利益,包含正确的测试资源是十分重要的。
To reap the workshop's full benefit, it is critical to include the correct test resources.
测试人员不仅要以正确的顺序执行任务,而且还要确定结果是否符合开发人员的预期。
Not only will testers perform tasks in the correct order, but they will also see whether the results are what the developers were expecting.
在简单装入测试后,将测试对象以确保它是正确实例化的。
After the simple load test, the object will be tested to ensure it was instantiated properly.
如果是这样,不是单元测试有问题,就是被测试的代码不正确。
In these cases, either the unit test or the code to be tested is most likely incorrect.
测试还可以检查您认为正确,但是没有经过充分测试的行为。
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.
测试证明,如果日期不正确,将显示适当的错误消息。
It verifies that the appropriate error message is displayed if the date is incorrect.
并且很难用集成测试模拟代码需要正确处理的所有临界情况。
It's also hard to use integration tests to stimulate all of the edge cases that your code should handle properly.
并且很难用集成测试模拟代码需要正确处理的所有临界情况。
It's also hard to use integration tests to stimulate all of the edge cases that your code should handle properly.
应用推荐