Simple and easy-to-use testing library in C++
Declare a test
#if defined(USING_UTEST)
#include "UTest.h"
#include "Sandbox.h"
TEST(TestSandbox1)
{
Sandbox sb;
int result = sb.Add(2, 2);
AssertEqual(4, result);
}
#endif
Run the tests
int main()
{
#if defined(USING_UTEST)
UTestRunner::Get().Run();
#endif
return 0;
}