Ignore:
Timestamp:
Apr 19, 2011, 12:15:04 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
76379c
Parents:
17eaa5
Message:

RegistryUnitTest: added re-adding of instance test (should throw).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Patterns/unittests/RegistryUnitTest.cpp

    r17eaa5 rf6ff493  
    6868  CPPUNIT_ASSERT( testinstance == instanceA );
    6969
     70  // re-register instanceA and check if this is admonished
     71#ifndef NDEBUG
     72  CPPUNIT_ASSERT_THROW(registry->registerInstance(instanceA),Assert::AssertionFailure);
     73#endif
     74
    7075  // unregister Aclass and see if there's no more match
    7176  registry->unregisterInstance(instanceA);
Note: See TracChangeset for help on using the changeset viewer.