We would usually create a common setup method, given the degree of duplication between these two test methods.
我们通常会生成一个常规的设置方法,给出这两个测试方法之间的复制等级。
2
In Listing 6, I take the duplicated code in Listing 4 and reduce the duplication by using the Pull up method refactoring - extracting behavior from a larger method into an abstract class method.
在清单6中,我用了清单4中的重复代码,使用了Pull Up Method重构来降低重复度—将行为从较大方法提取到一个抽象类方法中。
3
Conclusions Two-trocar laparoscope is an effective method to diagnose and treat intestinal duplication.