22 Sep
2008
22 Sep
'08
6:33 p.m.
AMDG trashing@gmx.net wrote:
To return to your previous posting: I try to do my best and test only public method. But sometimes it's very hard, especially for complex protected methods. Either you use the way descripted above or you move the method to a helper class. Both alternatives are not elegant I think.
I suppose that you could add class C { friend class C_test_access; }; and define C_test_access in the tests, with only static forwarding functions. In Christ, Steven Watanabe