...键词 : 类继承测试 ; 有向同步图 ; 交互路径 ; 测试用例生成算法 ; 同步交互序列 [gap=1009]Key words: class hierarchical test; directed synchronous graph; interactions path; test case generation algorithm;..
基于6个网页-相关网页
有使用unittest经验的用户可能认为,上面的示例应该使用truthtest类从testcase类继承的测试方法。
Experienced users of unittest might try to argue that the above example should use the testing methods that my new TruthTest class has inherited from TestCase.
下面一部分代码是实际的测试类(继承了上面的CustomerManagerContext类),实现了一些辅助方法和测试方法。
The next section of code is where the actual test class (derived from our CustomerManagerContext above) implements the auxiliary and test methods.
一种对于继承的测试就是你是否可以说明一些类是is - a关系,并且能讲得通。
A test for inheritance is whether you can state the is-a relationship about the classes and have it make sense.
应用推荐