You are not logged in.
I'm doing a software engineering course in C++ and I'd really like to be able to test my private methods. I know there's a whole debate as to whether private methods should be tested at all, and I have a blog post in the works where i'll spell out my thoughts. Till then I'd just like to know if there's a way to get CppUnit to test private methods (without having my test classes be subclasses and everything be protected).
Thanks
The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github
Offline
http://c2.com/cgi/wiki?TestingPrivateMe … eePlusPlus
choose wisely
I would go with a test class defined as a friend.
Offline