From 47e24eece15121c917a30166037cbb072bb6a443 Mon Sep 17 00:00:00 2001 From: Adam Domurad Date: Wed, 21 Nov 2012 12:37:38 -0500 Subject: Add UnitTest++ source code into ITW, without integration. --- tests/UnitTest++/src/Test.cpp | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tests/UnitTest++/src/Test.cpp (limited to 'tests/UnitTest++/src/Test.cpp') diff --git a/tests/UnitTest++/src/Test.cpp b/tests/UnitTest++/src/Test.cpp new file mode 100644 index 0000000..bc9cb3d --- /dev/null +++ b/tests/UnitTest++/src/Test.cpp @@ -0,0 +1,41 @@ +#include "Config.h" +#include "Test.h" +#include "TestList.h" +#include "TestResults.h" +#include "AssertException.h" +#include "MemoryOutStream.h" +#include "ExecuteTest.h" + +#ifdef UNITTEST_POSIX + #include "Posix/SignalTranslator.h" +#endif + +namespace UnitTest { + +TestList& Test::GetTestList() +{ + static TestList s_list; + return s_list; +} + +Test::Test(char const* testName, char const* suiteName, char const* filename, int lineNumber) + : m_details(testName, suiteName, filename, lineNumber) + , next(0) + , m_timeConstraintExempt(false) +{ +} + +Test::~Test() +{ +} + +void Test::Run() +{ + ExecuteTest(*this, m_details); +} + +void Test::RunImpl() const +{ +} + +} -- cgit v1.2.3