testing an internal class

后端 未结 6 894
北荒
北荒 2020-12-10 19:10

how to write unit tests to internal classes ???

6条回答
  •  醉话见心
    2020-12-10 19:13

    You don't test it directly. It will be tested through the class where it is defined.

    And, if you apply TDD, as this question tags currently implies, what is the test you just write that call for an inner class ? I mean can't it be a standard class, privately owned by the class you're working on ?

提交回复
热议问题