You can declare and initialize a test variable, set its scope, and change its value.
您可以声明并初始化一个测试变量,设置它的范围,并更改它的值。
First, the test recorder will initialize.
首先,测试记录器将初始化。
For instance, suppose each test in the class USES a database connection, a network connection, a very large data structure, or some other resource that's expensive to initialize or dispose of.
例如,假设类中的每个测试都使用一个数据库连接、一个网络连接、一个非常大的数据结构,或者还有一些对于初始化和事情安排来说比较昂贵的其他资源。
As we saw in the previous section, a huge problem in class design that makes testing difficult is having to initialize all sorts of objects that aren't required for your test.
正如我们在前一节介绍的,造成测试困难的大量类设计问题都集中在初始化各种不需要测试的对象上。
Services to initialize and to iterate through the test suite structure defined in the driver table
初始化并重复的穿过在驱动表中定义的测试套件结构
Do you recall that the purpose of a setup method is to initialize the object under test.
您是否还记得一个set方法的主要目的是对测试下的目标进行初始化。
In line 5, TestCase.setUp is overridden to initialize or instantiate the object under test.
在第五行中,TestCase . setUp被重载,从而对测试下的对象进行初始化或者实例化。
Create a new test data store and initialize it from the existing test data store.
创建一个新的测试数据存储,并从已存在的测试数据存储中对其进行初始化。
The test was also used to initialize all the blocks in the game;
这个测试同样用来初始化游戏中所有的砖块;
The test was also used to initialize all the blocks in the game;
这个测试同样用来初始化游戏中所有的砖块;
应用推荐