code-testing

Making C++ COM classes more test-friendly

Our code-base has a lot of COM objects, so typically we'll have something like: //this is the IDL-generated IGetTime interface header #include "gettime.h" //our COM class implementation of IGetTime class CGetTime : public IGetTime { public: CGetTime(CGetTimeCF &factory,...); //COM-specific constructor params /* IUnknown */ ...

How to test code easily?

Hi guys, I'm learning Java by reading "Head First Java" and by doing all the puzzles and excercies. In the book they recommend to write TestDrive classes to test the code and clases I've written, that's one really simple thing to do, but by doing this I think I can't fully test my code because I'm writing the test code knowing what I wan...