/* * ActionSequenceUnitTest.hpp * * Created on: Dec 17, 2009 * Author: crueger */ #ifndef ACTIONSEQUENCEUNITTEST_HPP_ #define ACTIONSEQUENCEUNITTEST_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include namespace MoleCuilder { class Action; } class wasCalledActionStub; class ActionSequenceTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE( ActionSequenceTest) ; CPPUNIT_TEST ( canUndoTest ); CPPUNIT_TEST ( doesCallTest ); CPPUNIT_TEST ( doesUndoTest ); CPPUNIT_TEST_SUITE_END(); public: void setUp(); void tearDown(); void canUndoTest(); void doesCallTest(); void doesUndoTest(); private: MoleCuilder::Action *positive1; MoleCuilder::Action *positive2; MoleCuilder::Action *negative1; MoleCuilder::Action *negative2; wasCalledActionStub* shouldCall1; wasCalledActionStub* shouldCall2; wasCalledActionStub* shouldNotCall1; wasCalledActionStub* shouldNotCall2; bool hasDescriptor; }; #endif /* ACTIONSEQUENCEUNITTEST_HPP_ */