source: molecuilder/src/unittests/ActionSequenceTest.hpp@ 031ec24

Last change on this file since 031ec24 was 8d24e2, checked in by Tillmann Crueger <crueger@…>, 16 years ago

Added more tests for Actionsequence

  • Test if every included object is called and every removed object is left alone
  • Test if every included object is undone and every removed object is left alone
  • Property mode set to 100644
File size: 865 bytes
Line 
1/*
2 * ActionSequenzTest.hpp
3 *
4 * Created on: Dec 17, 2009
5 * Author: crueger
6 */
7
8#ifndef ACTIONSEQUENZTEST_HPP_
9#define ACTIONSEQUENZTEST_HPP_
10
11#include <cppunit/extensions/HelperMacros.h>
12
13class Action;
14class wasCalledActionStub;
15
16class ActionSequenceTest : public CppUnit::TestFixture
17{
18 CPPUNIT_TEST_SUITE( ActionSequenceTest) ;
19 CPPUNIT_TEST ( canUndoTest );
20 CPPUNIT_TEST ( doesCallTest );
21 CPPUNIT_TEST ( doesUndoTest );
22 CPPUNIT_TEST_SUITE_END();
23
24public:
25 void setUp();
26 void tearDown();
27
28 void canUndoTest();
29 void doesCallTest();
30 void doesUndoTest();
31
32private:
33 Action *positive1;
34 Action *positive2;
35 Action *negative1;
36 Action *negative2;
37 wasCalledActionStub* shouldCall1;
38 wasCalledActionStub* shouldCall2;
39 wasCalledActionStub* shouldNotCall1;
40 wasCalledActionStub* shouldNotCall2;
41};
42
43#endif /* ACTIONSEQUENZTEST_HPP_ */
Note: See TracBrowser for help on using the repository browser.