1 /* 2 * Copyright 2015, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef CONDITIONS_TEST_H 6 #define CONDITIONS_TEST_H 7 8 9 #include <TestCase.h> 10 #include <TestSuite.h> 11 12 13 class Condition; 14 15 16 class ConditionsTest : public CppUnit::TestCase { 17 public: 18 ConditionsTest(); 19 virtual ~ConditionsTest(); 20 21 void TestEmpty(); 22 void TestSafemode(); 23 void TestFileExists(); 24 void TestOr(); 25 void TestAnd(); 26 void TestNot(); 27 28 static void AddTests(BTestSuite& suite); 29 30 private: 31 Condition* _Condition(const char* string); 32 }; 33 34 35 #endif // CONDITIONS_TEST_H 36