单元测试的目标就是检验最小单元的代码是否像预期一样发挥作用。
The goal of unit testing is to verify whether the smallest unit of code behaves the way it is expected to.
然而即使是那些保留了自有研发单元的公司,也日益意识到有价值的想法能从任何地方萌芽。
Yet even companies that maintain their own powerhouse research-and-development units are increasingly aware that valuable ideas can sprout anywhere.
财务模型:尽管激烈的竞争正导致单个产品单元的成本和价格下浮,但与新产品相关的复杂性和成本却在持续升高。
Financial Models: Although increased competitive pressures are causing individual product unit costs and prices to fall, the complexity and cost associated with new product solutions continue to grow.
企业服务总线(EnterpriseService Bus,ESB)将事件驱动的方法和面向服务的方法结合使用,以简化业务单元的集成,从而在异类平台和环境间建立联系。
An Enterprise service bus (ESB) combines event-driven and service oriented approaches to simplify integration of business units, bridging heterogeneous platforms and environments.
马修,我希望你能在周三的课上谈谈这一天文学单元。
Mathew, I'd love for you to talk about this astronomy unit in class on Wednesday.
组织图是洞察如何将人员组织为部门或单元和角色的绝佳方法。
They're a great way to get insight into how people are organized into departments or units and roles.
这正是单元测试发挥作用的时机。
因此,他们的设计使得编写单元测试变得很容易。
As a result, their design makes it very easy to write unit tests.
这个API(从NUnit借鉴而来)非常简单易读,我认为这在单元测试中是非常重要的。
This API (again, borrowed from NUnit) is very easy and intuitive to read, which I think is a very important part of unit testing.
单元测试使开发人员有信心相信他们的代码能够工作。
Unit tests give developers confidence that their code works.
通过生成代码覆盖率的具体数值,Cobertura将单元测试从一种艺术转变为一门科学。
By producing hard Numbers for code coverage, Cobertura transforms unit testing from an art to a science.
我为我的任务库创建了一些单元测试,以保证任务可以被正确地创建出来,并且以测试驱动重构迈开第一步。
I created some unit tests for my task library to ensure tasks were being created properly and begun some test-driven refactoring.
军队集结、英勇抵抗、对手间的争斗,此类叙事单元不断重复出现,只有角色和场景发生变化。
The same narrative units—gathering armies, heroic shields, challenges between rivals—pop up again and again, only with different characters and different circumstances.
不要受单元测试的教条所限。
我开始运行我的单元测试,然后看见一连串错误消息跳将出来。
I ran my unit tests and watched a raft of error messages float by.
将可重复的单元测试原则应用于BPEL开发可提高工作效率和开发质量。
Applying the principles of repeatable unit testing to BPEL development increases both productivity and quality.
首先编写单元测试,然后再编写要测试的类代码。
这有助于提高效率,这是因为无需重启此容器,让您能集中精力对感兴趣的组件进行单元测试。
This results in productivity gains because you are not required to restart the container, allowing you to concentrate on unit testing the components you are interested in.
目前来看,其相当稳定,因为在过去的一年中我们添加了5,000多个单元测试,涵盖了每一个特性。
It's currently fairly stable since we added over 5,000 unit tests over the last year covering just about every feature.
本文探究单元测试与功能测试之间的区别。
This article explores the differences between unit testing and functional testing.
单元测试好比房屋建筑现场的建筑监理员。
Unit testing is analogous to a building inspector visiting a house's construction site.
理论上讲,这个代码片段(或者说是代码单元)是源代码中最小的可测试部分。
Theoretically, this piece, or unit, should be the smallest testable portion of source code.
这种新语言给单元测试带来的灵活性,非常令人兴奋,值得认真研究。
The agility this new language brings to unit testing is quite exciting and worthy of some serious exploration.
不论是否使用Contract4J进行单元测试,考虑组件的合约都会改进设计。
Whether or not you use Contract4J with your unit tests, thinking about the contract of your components will improve your designs.
单元测试可以提供最重要的安全屏障,允许您按照自己的意愿重构代码库。
Unit tests represent the primary safety net that allows you to refactor your code base at will.
编写单元测试是一个更好的方法,因为这些测试允许您模拟使用该应用程序的用户,然后确定应用程序是否正确响应。
Writing unit tests is a much better approach as these tests allow you to simulate a user exercising the app and then determine if the app has responded correctly.
即便如此,如果你确实有时间和精力去为小型项目写单元测试的话,也可能是个不错的主意。
That being said, if you have the time and resources to write unit tests for even small/short projects, it may be a good idea.
即便如此,如果你确实有时间和精力去为小型项目写单元测试的话,也可能是个不错的主意。
That being said, if you have the time and resources to write unit tests for even small/short projects, it may be a good idea.
应用推荐