19 Sep
2008
19 Sep
'08
6:34 a.m.
M. Siebeneicher writes:
I tried to test protected/private class methods by declaring the test-case-class as a friend of the class-to-test.
Here's what we do to unit test our classes:
#define private public #define protected public #include
This makes our unit testing much easier! ;-)
Cheers,
-- Robert
I did this before but now it doesn't work 'cause the class_to_test lies in another library than the test_case_class. greetz, Manuel -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser