列表4中的单元测试列举了各种断言方法来执行正面与反面的单元测试。
Listing 4 unit tests illustrate various assert methods to perform positive and negative unit testing. It has the following test methods.
把组件增加到显示列表以进行测试——这一步启动了组件的内部生命周期,以便对其方法进行真正测试。
Add the component to the display list for testing - This step starts the internal life cycle of the components, which is needed for real testing of its methods.
每个测试都使用这些不同数据访问方法中的一种从列表从检索出数据的一个子集。
Each test consisted of retrieving a subset of data from the list using one of a number of different data access methods.
Boost邮件列表:寻找大量信息,包括安装和测试期间常见问题的解决方法。
Boost mailing list: Find a wealth of information, including fixes to common problems during installation and test.
MartinFowler:我之所以采用逐步设计以及先写测试的方法,是因为这样做使我有了一个简明扼要的任务列表。
Martin Fowler: the thing I like about taking small steps and writing tests first is that it gives me a simple to do list of the things I've got to do.
这些测试数据被传递给与动作方法关联在一起的视图,而视图对每个产品创建一个简单的细节列表。
The test data is passed to the view that we associated with the action method, and the view creates a simple list of the details for each product.
如果你做得好的话,这种方法会产生另一个作用,即通过自动化工具用一系列表格简明地显示出正在运行的测试用例。
Another by-product of this approach, if you do it well, is a set of tables that concisely show what test cases are being run by the automation tool.
测试类别是一种测试方法特性,可通过测试列表编辑器分配给一个或多个测试。
A test category is a test method attribute that you can assign to one or more tests using the test List Editor.
你可以采取一些方法来处理你的数据库,使它不仅仅是开发和测试人员的待办事项的列表。
There are things you can do with your database to make it more than just a to-do list for developers and testers.
在使用列表的方法和运算符之前,你应该好好读一下文档,然后在交互模式里面对它们进行一下测试。
Before using list methods and operators, you should read the documentation carefully and then test them in interactive mode.
此外,在创建测试方法时很容易添加测试类别,创建测试方法后也无需维护测试列表。
Also test categories are easy to add as you create your test methods and you do not have to maintain test lists after you have created your test methods.
此外,在创建测试方法时很容易添加测试类别,创建测试方法后也无需维护测试列表。
Also test categories are easy to add as you create your test methods and you do not have to maintain test lists after you have created your test methods.
应用推荐