Test the code in a separate application.
在单独的应用程序中测试代码。
Refactoring is a more tedious procedure than generating new test code from scratch.
重构会是一个比从头生成新测试代码更乏味的过程。
Now the test code clearly represents the intent of the test.
现在,测试代码清楚地表示出了该测试的意图。
I need you to test this code and then add the changes.
我需要您测试这个代码并作一些改动。
To keep the code simple, I put the class and the test code in one file.
为了保持代码简单,我把类和测试代码放在一个文件中。
Our test code, specifically the mock objects, give us total control over the database results.
我们的测试代码,特别是模拟对象,使我们能完全控制数据库结果。
Then the developer uses the test environment to test the code.
然后开发人员使用测试环境对代码进行测试。
The test code would like it to produce a different type (a mock).
测试代码希望它产生另一种类型的对象(模仿对象)。
In your test code, create a specialization object that extends (specializes) the target.
在测试代码中,创建扩展(专用于)目标对象的特殊化对象。
Writing application test code in a scripting language.
在脚本语言中编写应用程序测试代码。
However, it requires a lot of effort to create robust test code.
然而,它需要投入更多的努力才能创建出智能的测试代码。
Don't merely test your code: review your code and get it reviewed by others.
不要只对您的代码进行测试:检查代码,并将它交给其他人进行检查。
If programmers use TFP, they have to test their code.
如果程序员使用TFP,他们就不得不对代码进行测试。
You can now test the code to make sure it's really working.
您现在可以测试代码以确保它能够实际起作用。
TDD puts the test before the code.
TDD将测试放在编码工作前。
Listing 6 shows the complete test client code.
清单6展示了完整的测试客户机代码。
Listing 2 shows the complete test client code.
清单2展示了完整的测试客户机代码。
This means that vendors can test code that has not yet been shipped.
这意味着供应商可以测试尚未发布的代码。
I ran the test and implemented code to make the test pass.
运行这个测试案例并实现代码使测试通过。
The test code at the bottom illustrates just how much cleaner this syntax is.
底部的测试代码只演示了这个语法干净了多少。
To add a new batch item, I use the following test code.
使用以下测试代码添加新的批处理条目。
The updated test code is shown in Listing 6.
更新后的测试代码如清单6 所示。
Write your test code for the model.
为模型编写测试代码。
You may also be able to generate test code directly from the design models.
你还可以直接从设计模型中产生测试代码。
Simply put, unit testing means writing code to test other code.
简单地说,单元测试是用代码测试代码。
The test code also needs to be upgraded, as shown in Listing 4.
测试代码也需要进行更新,如清单 4 所示。
Preferably, you should code test cases first.
您应该优先编写测试用例。
The test code is shown in Listing 2.
测试代码如清单2 所示
Assume that you've already written the test code from the previous section.
假定已经编写了上一节中的测试代码。
Assume that you've already written the test code from the previous section.
假定已经编写了上一节中的测试代码。
应用推荐