根据代码单元计算的字符串长度。
应用程序域是CLR下最小代码单元。
The AppDomain is the minimum block of code that can be unloaded off the CLR.
lab栏指明了这是哪种代码单元类型。
单元测试可验证代码单元的实现是否正确。
Unit tests verify the correct implementation of a unit of code.
首先编写单元测试,然后再编写要测试的类代码。
如果你觉得一段代码难于理解,那么就写一个单元测试。
If you think a piece of code is confusing, write unit tests for it.
最佳的入手方式就是为新代码创建单元测试。
在实际开始编写产品代码之前,我们需要编写单元测试。
Before writing any production code, we'd write our unit tests.
我们需要一个强大的集成开发环境(IDE)来对我们的代码进行开发和单元测试。
We wanted a strong integrated development environment (IDE) to develop and unit test our code.
GWT代码的基本单元是模块。
一旦通过全部单元测试,代码也就完成了。
在单元测试中捕获代码注释。
开发人员在他们编写代码的同时编写单元测试。
该重构启用清单1中所示的单元测试代码。
This refactoring enables the unit test code shown in Listing 1.
提供一些培训,包括代码的坏味道,重构,单元测试和测试驱动开发等。
Provide training that covers Code Smells, Refactoring, Unit Test and Test Driven Development.
单元测试使您能够安全地重构代码。
利用测试驱动开发(TDD),你用单元测试帮助设计你的代码。
With test-driven development (TDD), you use unit tests to help design your code.
单元测试使开发人员有信心相信他们的代码能够工作。
Unit tests give developers confidence that their code works.
单元测试必须作为一级应用程序代码管理。
这个单元测试应当准确表达您期待的代码的行为。
The unit test should express your intention for how you expect your code to behave.
运行单元测试确保代码正常工作。
简单地说,单元测试是用代码测试代码。
Simply put, unit testing means writing code to test other code.
完整的关于单元测试的代码在 样例代码 中。
The full unit testing-related code is supplied in the sample code.
单元测试是模块中新代码和变更代码最初进行的测试。
A unit test is the initial testing of new and changed code in a module.
把测试案例和被测试的程序代码放在同一个单元里面。
接下来,您编写能够通过这个单元测试的程序代码;
Next, you write just enough code in order for the unit test to pass.
编写单元测试通常是为了测试一段源代码。
A unit test is usually written to test a piece of source code.
将打开包含该单元测试的源代码文件。
将打开包含该单元测试的源代码文件。
应用推荐