The type of a constant must be at least as accessible as the constant itself.
常数的类型必须至少与常数本身具有同样的可访问性。
It is needed when there should be a specific list of constant values to be used for the simple type defined by the enumeration.
当枚举定义的简单类型使用常数的特殊列表时,就会需要这种类型了。
But the real problem with unit tests as I've discovered is that the type of changes that you tend to make as code evolves tend to break a constant percentage of your unit tests.
但我认为单元测试的真正问题在于人们改进代码的同时也会破坏同等数量的单元测试。
应用推荐