Example of calling a unit test method.
调用单元测试方法的实例。
For example, with my test, I'll first call the getDefinition() method and then provide an implementation of a Timer's run() method.
以我的测试为例,我将首先调用 getDefinition() 方法,然后提供一个 Timer 的 run() 方法的实现。
In this example, for clarity, we left some of the validation inside the test method.
在本示例中,为了清晰起见,我们将验证的某些部分放在了测试方法内部。
应用推荐