Initial commit, version 0.1.0.
[libfsafe.git] / tests / AssertPost.hxx
blob31c5a1ef19331461ca8c3c58ab6b6e0664316df4
1 #ifndef TESTS_ASSERTPOST_HXX
2 #define TESTS_ASSERTPOST_HXX
4 #include <libfsafe/PostconditionViolation.hxx>
5 #include <cppunit/extensions/HelperMacros.h>
7 namespace tests
9 class AssertPost;
12 class tests::AssertPost : public CppUnit::TestFixture
14 CPPUNIT_TEST_SUITE(tests::AssertPost);
15 CPPUNIT_TEST(passIfTrue);
16 CPPUNIT_TEST_EXCEPTION(failIfFalse, libfsafe::PostconditionViolation);
17 CPPUNIT_TEST(testMessage);
18 CPPUNIT_TEST_SUITE_END();
20 public:
21 void passIfTrue();
22 void failIfFalse();
23 void testMessage();
26 #endif