我的意思是,您只需假定您正在为其编写测试的类已经存在。
What I mean is that you simply pretend that the class you are writing the test for exists.
在编写测试时,您假设正在使用的类已经存在,然后按照您希望在系统其余部分中使用的方式来使用该类。
When you write the test, you're pretending the class you're using already exists, then you're using that class the way you'll want to in the rest of the system.
如果您想调用的代码已经存在,则只需改变类名以与它的名称匹配。
If the code that you want to call already exists, just change the class name to match its name.
应用推荐