#include #define private public // need to reach Singleton's private m_instance #include "Common.hpp" #include "Fixture.hpp" #include "Singleton_meyers.hpp" class TestSingletonMeyersSuite : public CxxTest::TestSuite { private: class BasicSingleton : public Singleton_meyers { public: int getSeven() { TRACE; return 7; } }; public: void testBasic( void ) { TEST_HEADER; TS_ASSERT_EQUALS( BasicSingleton::getInstance()->getSeven(), 7 ); } };