Changeset 1c291d for src/Observer/unittests/ObserverUnitTest.cpp
- Timestamp:
- Mar 18, 2013, 6:29:41 PM (13 years ago)
- Children:
- 3f30cc
- Parents:
- b9273a
- git-author:
- Frederik Heber <heber@…> (03/18/13 18:22:47)
- git-committer:
- Frederik Heber <heber@…> (03/18/13 18:29:41)
- File:
-
- 1 edited
-
src/Observer/unittests/ObserverUnitTest.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Observer/unittests/ObserverUnitTest.cpp
rb9273a r1c291d 298 298 299 299 RelayNotified->wasNotified=false; 300 notificationObserver1->wasNotified=false; 300 301 301 302 // operation2 302 303 notificationObservable->operation2(); 303 304 CPPUNIT_ASSERT(!RelayNotified->wasNotified); 304 CPPUNIT_ASSERT( notificationObserver1->wasNotified);305 CPPUNIT_ASSERT(!notificationObserver1->wasNotified); 305 306 306 307 // signOff relay from 1 and operation1 … … 313 314 314 315 // test kill subject 316 RelayNotifier->signOff(RelayNotified, NotificationObservable::Operation1Notify); 315 317 delete RelayNotified; 316 318 RelayNotified = NULL; // delete in tearDown is allowed for NULL 317 319 notificationObservable->operation1(); 320 notificationObservable->signOff(RelayNotifier, NotificationObservable::Operation2Notify); 318 321 delete notificationObservable; 319 322 notificationObservable = NULL; // delete in tearDown is allowed for NULL
Note:
See TracChangeset
for help on using the changeset viewer.
