1
#include "../UnitTest++.h"
2
#include "../CurrentTest.h"
3
#include "ScopedCurrentTest.h"
8
TEST(CanSetandGetDetails)
12
ScopedCurrentTest scopedTest;
14
const UnitTest::TestDetails* details = reinterpret_cast< const UnitTest::TestDetails* >(12345);
15
UnitTest::CurrentTest::Details() = details;
17
ok = (UnitTest::CurrentTest::Details() == details);
23
TEST(CanSetAndGetResults)
27
ScopedCurrentTest scopedTest;
29
UnitTest::TestResults results;
30
UnitTest::CurrentTest::Results() = &results;
32
ok = (UnitTest::CurrentTest::Results() == &results);