阅读背景:

使用友元类与在C ++中添加访问器进行单元测试?

来源:互联网 

Is it better to add functions that return the internal state of an object for unit testing, as opposed to making the testing class a friend? - especially, when there is no use for the functions except for the case of unit testing.Is it better to add functions that return the i




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

分享到: