Note that you use OutputTextStream to display messages. OutputTextStream is a TTest member function that allows you to record the text you display in a text buffer stored within the TTest instance. Use this member function or a related method to display messages in your tests.
// File: SimpleTest.C
// Copyright (C) 1995 Taligent, Inc. All rights reserved.
#ifndef Taligent_TEST
#include <Taligent/Test.h>
#endif
class TSimpleTest : public TTest {
public:
TSimpleTest();
virtual ~TSimpleTest();
protected:
// Override the Test member function and write the test you want to perform
virtual void Test();
private:
MCollectibleDeclarationsMacro(TSimpleTest);
};
TSimpleTest::TSimpleTest() { }
TSimpleTest::~TSimpleTest() { }
MCollectibleDefinitionsMacro(TSimpleTest,0);
void TSimpleTest::Test()
{
// This is the member function in which you write the code for your test
OutputTextStream() << "TSimpleTest - Test method called.\n";
SetSuccess(true);
}