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
|
Line | |
---|
1 | /*
|
---|
2 | * PeriodentafelUnitTest.hpp
|
---|
3 | *
|
---|
4 | * Created on: May 18, 2010
|
---|
5 | * Author: heber
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef PERIODENTAFELUNITTEST_HPP_
|
---|
9 | #define PERIODENTAFELUNITTEST_HPP_
|
---|
10 |
|
---|
11 | // include config.h
|
---|
12 | #ifdef HAVE_CONFIG_H
|
---|
13 | #include <config.h>
|
---|
14 | #endif
|
---|
15 |
|
---|
16 |
|
---|
17 | #include <cppunit/extensions/HelperMacros.h>
|
---|
18 |
|
---|
19 | class element;
|
---|
20 | class periodentafel;
|
---|
21 |
|
---|
22 | /********************************************** Test classes **************************************/
|
---|
23 |
|
---|
24 | class periodentafelTest : public CppUnit::TestFixture
|
---|
25 | {
|
---|
26 | CPPUNIT_TEST_SUITE( periodentafelTest) ;
|
---|
27 | CPPUNIT_TEST ( AddRemoveTest );
|
---|
28 | CPPUNIT_TEST ( LoadStoreTest );
|
---|
29 | CPPUNIT_TEST ( ComparisonTest );
|
---|
30 | CPPUNIT_TEST ( SerializeTest );
|
---|
31 | CPPUNIT_TEST_SUITE_END();
|
---|
32 |
|
---|
33 | public:
|
---|
34 | void setUp();
|
---|
35 | void tearDown();
|
---|
36 | void AddRemoveTest();
|
---|
37 | void LoadStoreTest();
|
---|
38 | void ComparisonTest();
|
---|
39 | void SerializeTest();
|
---|
40 |
|
---|
41 | private:
|
---|
42 |
|
---|
43 | const element *hydrogen;
|
---|
44 | const element *carbon;
|
---|
45 | periodentafel *tafel;
|
---|
46 |
|
---|
47 | };
|
---|
48 |
|
---|
49 | std::string gatherUndoInformation(const periodentafel &periode);
|
---|
50 |
|
---|
51 |
|
---|
52 | #endif /* PERIODENTAFELUNITTEST_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.