///////////////////////////////////////// // TestDriver.cpp // // Jim Fawcett #define TEST_EXPORTS #include "itest.h" class TestDriver : public ITest { public: TestDriver(void); virtual ~TestDriver(void); virtual bool test(); // inherits static creational function }; TestDriver::TestDriver(void) { // initialize any test stuff here } TestDriver::~TestDriver(void) { // deallocate test resources here } ITest* ITest::createTest() { return new TestDriver; } bool TestDriver::test() { // put calls into tested code here // and return pass status not the // automatic fail below return false; }