Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cUnitTestDecl.h File Reference
#include "GrayCore.h"

Go to the source code of this file.

Macros

#define UNITTEST_N(n)   n##Tests
 Pick a unique name for the unit test class. Assume in same namespace as what it is testing (n). More...
 
#define UNITTEST_FRIEND(n)   friend class UNITTEST_N(n);
 Define this in the class body to be unit tested. Allow the unit test to access private/protected stuff. More...
 
#define UNITTEST2_PREDEF(x)
 

Detailed Description

Included from header file to minimally declare a unit test.

Macro Definition Documentation

◆ UNITTEST2_PREDEF

#define UNITTEST2_PREDEF (   x)

◆ UNITTEST_FRIEND

#define UNITTEST_FRIEND (   n)    friend class UNITTEST_N(n);

Define this in the class body to be unit tested. Allow the unit test to access private/protected stuff.

◆ UNITTEST_N

#define UNITTEST_N (   n)    n##Tests

Pick a unique name for the unit test class. Assume in same namespace as what it is testing (n).