The present perfect is covered in Unit 8.
现在完成时在第8单元讲解。
Capture code comments in unit tests.
在单元测试中捕获代码注释。
Avoid using domain objects in unit tests.
在单元测试中避免使用域对象。
Avoid using domain-specific objects in unit tests.
避免在单元测试中使用特定于域的对象。
Sometimes errors occur in unit tests that aren't thrown by assertions.
有时,发生在单元测试中的错误不是由断言抛出的。
This component AIDS in unit testing components with standard values.
该组件可以帮助使用标准值对组件进行单元测试。
This has already happened in Unit 1 at Fukushima (see the video below).
福岛核电厂的1号机组已经发生了这样的爆炸(见下方的视频)。
Imagine you were at Paul's interview. We heard part of it in Unit 12. Write some of.
假设你参加了保罗的面试,我们在第12单元中已听到了面试的部分情况。
That is the stuff that goes through my curve, in unit time,for a small portion of curve.
这就是在单位时间内,通过一小部分曲线的流体了。
In unit testing language, this is called a mock object (see Resources for more information).
按照单元测试的术语,这称为模拟对象(mock object),更多信息参见参考资料中的链接。
Design by contract also makes explicit the contract definition that is more implicit in unit tests.
契约式设计也做了显式的合约定义,而在单元测试中这些更隐式。
But the car will not burn gasoline to recharge the battery until the plug-in unit is exhausted.
但是这种汽车只有在充电设施耗尽后才会通过燃烧汽油为电池充电。
In Unit 3 we examined briefly the sequence of procedures which make up the so-called scientific method.
在第三单元,我们扼要考虑了组成所谓科学方法各个步骤前后顺序。
If you were thinking of a velocity field, that would measure how much fluid is passing through the curve in unit time.
想象一个速度场,它能够度量,单位时间内流体的量。
You can also handle expected exceptions using the constructs available to you in unit testing frameworks such as JUnit.
您还可以使用JUnit这样的单元测试框架中可用的构件来处理预期的异常。
Test harness support, making it very easy to have full testing of Shiro secured-code in unit and integration tests.
支持测试工具,这样可以很容易的对Shiro的安全代码进行单元测试和集成测试。
This is largely due to a steady rise in unit Labour costs, as wage increases outstripped productivity growth (see chart).
这很大程度上是因为国内单位劳动成本的稳步上升,工资的增长超过了生产力的增长(见图表)。
Declining real wages and a modest upswing in productivity have together produced a sustained drop in unit Labour costs.
实际工资下降以及生产率温和上扬一起造成单位劳动成本的持续下降。
Italy and Spain have seen sharp rises in unit Labour costs and their labour-productivity growth has stalled or gone into reverse.
意大利和西班牙的单位劳动力成本显著上升而劳动生产率增长却停滞不前甚至出现倒退。
Some services (for example, those implemented using mainframe or ERP systems) may not be available to developers in unit test environments.
在单元测试环境中,有些服务(例如,那些使用大型机或ERP系统实现的服务)可能对开发人员不可用。
Or the tested object may make use of objects with side effects that may not be desirable in unit testing, like file objects that delete files.
或者,测试对象会使用具有副作用的对象,如删除文件的File对象,而在单元测试中不希望有这些副作用。
I hope that you see the benefits of using mock objects in unit testing. I also hope this brief tutorial helps you see how to create mock objects easily.
我希望你们能够发现在单元测试中使用模拟对象的益处,也希望这篇简短的指南能够帮您了解如何简单地创建模拟对象。
Several books and papers show how to use mock objects in unit testing. These describe the capabilities that mock objects should have and how to use them.
一些书籍和论文讲述了如何在单元测试中使用模拟对象,描述的是模拟对象应该具备的能力以及如何使用他们。
External services may not be readily executable in unit test environments; for example, they may depend upon infrastructure not available to the developers.
外部服务在单元测试环境中不能随时执行,例如,它们可能依赖于开发人员无法使用的基础结构。
Wages there rose faster than productivity in the year to the second quarter, leading to small increases in unit Labour costs, or moderate wage inflation.
在今年二季度工资增长速度超过劳动生产率的增长速度,带动了劳动力成本的小幅或者中等适度的上涨。
Primary containment vessels in units 1 and 3 are reportedly intact, but a structure in unit 2 has cracked, preventing water from fully covering the core.
报道中称1号和3号的反应堆外壳是完好的,但是2号反应堆中的某个构架被炸坏了,致使水无法完全淹没核心。
But reading and writing files in unit tests slows tests and requires adding more complexity (like creating a temp directory and cleaning up files after use).
但在单元测试中读和写文件会减缓测试,增加更多的复杂性(如创建临时目录和在使用后清除文件)。
The PS3 realized the greatest increase over last year's November sales and had its third best month in unit sales ever, coming in just under Decembers '07 and '08.
PS3机型的销量则比去年同期有了更大的增长,11月份PS3的销量达到了历史第三高的水平,而前两次销量较高的记录则分别是2007年和2008年的12月份。
The PS3 realized the greatest increase over last year's November sales and had its third best month in unit sales ever, coming in just under Decembers '07 and '08.
PS3机型的销量则比去年同期有了更大的增长,11月份PS3的销量达到了历史第三高的水平,而前两次销量较高的记录则分别是2007年和2008年的12月份。
应用推荐