Hello everyone - new guy here. I've made a patch to allow UnitTest++ to test private and protected methods, but it comes with a caveat and a couple questions:
1. (The caveat) UnitTest++.h must be included before the headers with the "private" methods a la: // This compiles fine. #include "UnitTest++.h" #include "ClassToTest.h" TEST(Foo) { ClassToTest bar; CHECK(bar.MyPrivateMethod()); } // This won't. #include "ClassToTest.h" #include "UnitTest++.h" TEST(Foo) { ClassToTest bar; CHECK_EQUAL(baz, bar.MyPrivateMethod()); } (Questions) 2. How, exactly, do I submit these changes upstream? 3. Should I even submit this? Has this already been talked out to death and decided against? I wouldn't know. I'm new here ;) 4. The patch involves a new file (ShowPrivates.h). How do I include this for all platforms? I noticed a MAKEFILE, vs2003 project file, and vs2005 file. One other thing. I have a Visual Studio 2008 project file that I'm more than happy to contribute, too - that is, if you want it. -Clark Gaebel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ unittest-cpp-devel mailing list unittest-cpp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unittest-cpp-devel