view ext/UnitTest++/src/Test.h @ 197:80b3c41c3427

* Updated win32 build scripts to work with the new compile SDK * Download the SDK here: http://downloads.sourceforge.net/fife/FIFE_2009.0_win32_SDK.7z * List of changes and further details can be found here: http://fifengine.de/2009/03/11/new-win32-compile-sdk-released-20090/ * The 2008.0-r4 SDK won't work anymore since this commit.
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 11 Mar 2009 21:09:39 +0000
parents 0d325e9d5953
children
line wrap: on
line source

#ifndef UNITTEST_TEST_H
#define UNITTEST_TEST_H

#include "TestDetails.h"

namespace UnitTest {

class TestResults;
class TestList;

class Test
{
public:
    Test(char const* testName, char const* suiteName = "DefaultSuite", char const* filename = "", int lineNumber = 0);
    virtual ~Test();
    void Run(TestResults& testResults) const;

    TestDetails const m_details;
    Test* next;
    mutable bool m_timeConstraintExempt;

    static TestList& GetTestList();

private:
    virtual void RunImpl(TestResults& testResults_) const;

    Test(Test const&);
    Test& operator =(Test const&);
};


}

#endif