xlnt/third-party/cxxtest/doc/examples/MyTestSuite1.h

13 lines
216 B
C
Raw Normal View History

// MyTestSuite1.h
#include <cxxtest/TestSuite.h>
class MyTestSuite1 : public CxxTest::TestSuite
{
public:
void testAddition(void)
{
TS_ASSERT(1 + 1 > 1);
TS_ASSERT_EQUALS(1 + 1, 2);
}
};