Using a friend class vs. adding accessors for unit testing in C++?
Asked 2009-07-19T04:35:17.350
11
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.