source: src/Element/unittests/PeriodentafelUnitTest.hpp

Candidate_v1.6.1
Last change on this file was 592be9, checked in by Frederik Heber <heber@…>, 13 years ago

Moved unitests on Element... into subfolder src/Element/unittests.

  • new Makefile is included in src/unitests/Makefile.am.
  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[4eb4fe]1/*
[f844ef]2 * PeriodentafelUnitTest.hpp
[4eb4fe]3 *
4 * Created on: May 18, 2010
5 * Author: heber
6 */
7
[f844ef]8#ifndef PERIODENTAFELUNITTEST_HPP_
9#define PERIODENTAFELUNITTEST_HPP_
[4eb4fe]10
[56f73b]11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
[4eb4fe]17#include <cppunit/extensions/HelperMacros.h>
18
19class element;
20class periodentafel;
21
22/********************************************** Test classes **************************************/
23
24class periodentafelTest : public CppUnit::TestFixture
25{
26 CPPUNIT_TEST_SUITE( periodentafelTest) ;
27 CPPUNIT_TEST ( AddRemoveTest );
28 CPPUNIT_TEST ( LoadStoreTest );
[b60804]29 CPPUNIT_TEST ( ComparisonTest );
30 CPPUNIT_TEST ( SerializeTest );
[4eb4fe]31 CPPUNIT_TEST_SUITE_END();
32
33public:
34 void setUp();
35 void tearDown();
36 void AddRemoveTest();
37 void LoadStoreTest();
[b60804]38 void ComparisonTest();
39 void SerializeTest();
[4eb4fe]40
41private:
42
[e5c0a1]43 const element *hydrogen;
44 const element *carbon;
[4eb4fe]45 periodentafel *tafel;
46
47};
48
[220cf64]49std::string gatherUndoInformation(const periodentafel &periode);
50
51
[f844ef]52#endif /* PERIODENTAFELUNITTEST_HPP_ */
Note: See TracBrowser for help on using the repository browser.