阅读背景:

单元使用内部构造函数测试类

来源:互联网 

I have a class called "Session" which exposes several public methods. I'd like to Unit Test these, however in production I need to control instantiation of "Session" objects, so delegate construction to to a SessionManager class and have made the Session's constructor internal.I have a class called "Session" which exposes s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: