/* * PeriodentafelUnitTest.hpp * * Created on: May 18, 2010 * Author: heber */ #ifndef PERIODENTAFELUNITTEST_HPP_ #define PERIODENTAFELUNITTEST_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include class element; class periodentafel; /********************************************** Test classes **************************************/ class periodentafelTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE( periodentafelTest) ; CPPUNIT_TEST ( AddRemoveTest ); CPPUNIT_TEST ( LoadStoreTest ); CPPUNIT_TEST ( ComparisonTest ); CPPUNIT_TEST ( SerializeTest ); CPPUNIT_TEST_SUITE_END(); public: void setUp(); void tearDown(); void AddRemoveTest(); void LoadStoreTest(); void ComparisonTest(); void SerializeTest(); private: const element *hydrogen; const element *carbon; periodentafel *tafel; }; std::string gatherUndoInformation(const periodentafel &periode); #endif /* PERIODENTAFELUNITTEST_HPP_ */