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.
单元测试定义一个有关每个单元的行为的书面合同。
应用推荐