后缀的另一个参数-至少在英语中:
一个类通常代表一个 名词 ,它是一个概念的模型。您的测试之一的实例将是“ MyClass测试”。相反,一种方法将对某种动作建模,例如“测试[计算]
[方法]”。
因此,我将始终对测试类使用“后缀”,并对测试方法使用前缀:
the MyClass test --> MyClassTesttest the calculate method --> testCalculate()

后缀的另一个参数-至少在英语中:
一个类通常代表一个 名词 ,它是一个概念的模型。您的测试之一的实例将是“ MyClass测试”。相反,一种方法将对某种动作建模,例如“测试[计算]
[方法]”。
因此,我将始终对测试类使用“后缀”,并对测试方法使用前缀:
the MyClass test --> MyClassTesttest the calculate method --> testCalculate()