Ignore:
Timestamp:
Dec 29, 2009, 11:47:57 AM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
fab853
Parents:
93df03f
Message:

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/ActionSequenceTest.hpp

    r93df03f r8d24e2  
    1111#include <cppunit/extensions/HelperMacros.h>
    1212
     13class Action;
     14class wasCalledActionStub;
     15
    1316class ActionSequenceTest :  public CppUnit::TestFixture
    1417{
    1518  CPPUNIT_TEST_SUITE( ActionSequenceTest) ;
    1619  CPPUNIT_TEST ( canUndoTest );
     20  CPPUNIT_TEST ( doesCallTest );
     21  CPPUNIT_TEST ( doesUndoTest );
    1722  CPPUNIT_TEST_SUITE_END();
    1823
     
    2227
    2328  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;
    2441};
    2542
Note: See TracChangeset for help on using the changeset viewer.