Unit tests often need to test nuanced behavior of the code under test, leading to similar and duplicated situations.
单元测试常常需要测试有细微差异的代码行为,因此涉及到相似和重复的情况。
We might use scenarios as the unit of measure or look at each step that describes system behavior as a feature.
我们可以用场景作为我们度量的一个单元,或者将描述系统行为的每一个步骤作为一个特性。
Unit testing defines a written contract about the behavior of each unit.
单元测试定义一个有关每个单元的行为的书面合同。
A good guideline to follow is to write a unit test whenever you feel the need to comment some behavior in the code.
应该遵循下面这条很好的原则:即只要您认为有必要对代码中的某个行为加注,就编写一个单元测试。
Behavior Driven Development goes further by directly associating unit tests (and test cases) with the requirements via the use of natural language.
行为驱动开发则更进一步,通过使用自然语言,直接把单元测试(以及测试用例)同需求联系起来。
If you're like many programmers who aren't fond of commenting code, unit tests are a way of documenting your code behavior.
如果您像其他许多程序员一样不喜欢为代码加注,则单元测试是记录代码行为的一种方法。
However, the desired behavior of the transaction manager would be the same even if the unit of execution was a thread.
然而,即使执行单元是一个线程,期望的事务管理器行为都是相同的。
Therefore, a refactoring browser could potentially leverage the unit test suite to determine what aspects of behavior are important.
因此,重整浏览器可以潜在地利用一组单元测试来确定行为的重要方面。
The second option is to mock out the validation behavior and leave the test in the unit directory.
第二个选择是模拟验证行为并将测试类保留在单元目录中。
Unit testing addresses the internal structure, such as logic and dataflow, and the testing of functions and the externally visible behavior of the unit.
单元测试强调内部结构,例如逻辑和数据流,以及单元的功能和外部可见行为测试。
A comprehensive set of unit tests makes it easy to verify the behavior, letting you freely play "what if" games with optimization without worrying that you've broken something.
全面的单元测试集能够轻松地检查行为是否正确,让开发人员能够专心地优化代码,而不必担心是否会破坏代码的正常行为。
She linked this difference in behavior to the switch of a single amino acid unit in a protein called npr-1 (for neuropeptide Y receptor-1).
她把这种行为的不同与蛋白质内一个氨基酸单位中性蛋白酶- 1的改变联系起来。(用于神经肽y的接收器1号)。
In this part Jamie introduces the reader to behavior driven development and explains how it can improve the effectiveness of unit testing.
这个部分Jamie将给读者介绍行为驱动开发(BDD),同时他会解释BDD如何提高单元测试的有效性。
WSCI USES a transaction element to model the behavior of a web service and treats a number of activities as a single unit of work.
WSCI使用事务元素为Web服务行为建模,并且将一组行为作为一个工作单元。
One way to specify the behavior implicitly is to use unit tests written with JUnit (see Resources).
一种隐式地指定行为的方法是使用以JUnit(请参阅参考资料)编写的单元测试。
Publicly share the scores of each business unit to embarrass executives, which impels the needed behavior from their staffs.
对每个业务单位的表现进行评分,这会督促各位负责人,他们进而会督促其下属完成所需的任务。
And if you have unit tests that cover the rest of your application, you can be sure that your additions have not changed the behavior elsewhere.
而且如果你有了涉及应用程序其余部分的单元测试,你就可以保证你的添加已经不会改变其它地方的行为。
When you are getting unexpected or inconsistent behavior from a unit test.
当你得到一个单元测试的异常或不一致行为时。
A set of behavior patterns expected of someone occupying a given position in a social unit.
指在一个社会单元中,人们对占据特定位置的个体所期望的一套行为模式。
This thesis thinks, the behavior of illegally invade the computer information system offense should include not full 16 the youth and should put the unit of this offense into practice.
本文认为,非法侵入计算机信息系统罪的犯罪主体应包括未满16周岁的少年以及实施本罪的单位。
From the professional view, the observing behavior of teacher is one of the basic behaviors of teacher, which means the course of collecting meaningful information in a meaningful unit by teacher.
如果从专业的角度看,教师观察行为是教师的基本行为之一,它是指教师在一个意义单元内搜集有意义的信息的过程。
Role: a set of behavior patterns expected of someone occupying a given position in a social unit.
角色;指在一个社会单元中,人们对占据特定位置的个体所期望的一套行为模式。
And the result of identify has no direct relation with the behavior of Material used, so the method can be applied to all kinds of structural unit.
并得出识别结果与结构所使用材料性质没有直接关系,因此该方法可广泛应用于各类结构构件。
Shown as the employing unit and graduate's behavior and remain further to be normal, market construction remains to strengthen further.
表现为用人单位和毕业生行为有待进一步规范,市场建设有待进一步加强。
Test your changes: you can run existing unit tests against the modified database or server to verify that your changes do not break any behavior of your application.
测试变更:您可以对已修改的资料库或伺服器执行现有的单元测试,以确认变更不会中断应用程序的任何行为。
You can define unit tests to verify the behavior of your database objects.
您可以定义单元测试,以验证资料库物件的行为。
You can also create unit tests to verify new or changed behavior.
您也可以建立单元测试以确认新的或变更的行为。
Provides information and links to additional topics about how you can define unit tests to verify the behavior of your database objects.
提供有关如何定义单元测试以验证数据库对象的行为的信息和相关主题的链接。
This behavior does not surface if those particular unit tests are not run.
此行为不面如果那些特定的单元测试不运行。
This behavior does not surface if those particular unit tests are not run.
此行为不面如果那些特定的单元测试不运行。
应用推荐