Approach to unit testing interaction with a base class

独自空忆成欢 提交于 2019-12-04 13:50:32

Just my humble opinion.

Generaly it is not a good idea to test interactions with base class. As you are going to test implementation details here.

If testing inherited class togehter with base class seems to be complicated then it is probably time to refactor and use aggregation instead of inheritance?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!