// Minimal stand-in for Microsoft's CppUnitTest framework (study only): enough to compile // the PPUSim unit tests and call their UnitTest:: methods from main(). #pragma once #include namespace Microsoft { namespace VisualStudio { namespace CppUnitTestFramework { struct Logger { static void WriteMessage(const char* s) { fputs(s, stdout); } }; struct Assert { static void IsTrue(bool b, const wchar_t* = nullptr) { if (!b) puts("ASSERT FAILED"); } }; }}} #define TEST_CLASS(name) struct name #define TEST_METHOD(name) void name()