单一职责原则是一个好方法。
An appropriate way to do this is to think of the Single Responsibility Principle.
单一职责原则。
在单元测试中,它与实际用例相同或更小,因为单元服从于“单一职责原则”,您是测试它的单一职责。
In a unit test, it's the same but smaller — because your unit obeys the single responsibility Principle, you're testing its single responsibility.
应用推荐