常见的功能在单一类中就都包括了。
可以将测试按照测试代码的多少分类:“单元测试”检验单一组件的功能,比如一个函数或者一个类。
Tests can be categorized according to the amount of code they exercise: a unit test verifies the functionality of a single software component, such as a function or a class.
上帝对象(God object):在设计的单一部分(某个类)集中了过多的功能。
God object: Concentrating too many functions in a single part of the design (class).
上帝对象(God object):在设计的单一部分(某个类)集中了过多的功能。
God object: Concentrating too many functions in a single part of the design (class).
应用推荐