The state test of class is an important component part of object-oriented software test. Class unit test comes down to test the data member and member function.
类的状态测试是面向对象软件测试的重要内容,类的单元测试归结为测试类的数据成员和成员函数。
The test class represents the usual unit of test execution that occurs while you are developing, and so we should consider carefully how many tests to include in any one class.
测试类表示在开发时发生的测试执行的常见单元,所以我们应仔细考虑任何一个类中包括了多少个测试。
Writing a unit test for a Stack class is straightforward.
可以很直观地写出对堆栈类的单元测试。
应用推荐