图形化的控制台很适合于交互式测试一个或两个类,而该控制台以批处理方式运行所有的测试,例如,完全重构过程,这一部分。
The graphical console is good for interactively testing one or two classes, while the console runs all the tests in batch mode, for example, as part of a full rebuild.
“提取方法”将代码注释所标记的代码区域提取到其自己的方法中,然后执行重构后的代码,则将向控制台输出10。
Extract method to extract the region of code that is marked by code comments into its own method and then execute the refactored code, then 10 will be printed to the console.
应用推荐