Changes in src/unittests/ObserverTest.cpp [cd5047:7a176b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/ObserverTest.cpp
rcd5047 r7a176b 382 382 // make this Observable its own subject. NEVER DO THIS IN ACTUAL CODE 383 383 simpleObservable1->signOn(simpleObservable1); 384 #ifndef NDEBUG 384 385 CPPUNIT_ASSERT_THROW(simpleObservable1->changeMethod(),Assert::AssertionFailure); 386 #else 387 simpleObservable1->changeMethod(); 388 #endif 385 389 386 390 // more complex test … … 388 392 simpleObservable1->signOn(simpleObservable2); 389 393 simpleObservable2->signOn(simpleObservable1); 394 #ifndef NDEBUG 390 395 CPPUNIT_ASSERT_THROW(simpleObservable1->changeMethod(),Assert::AssertionFailure); 396 #else 397 simpleObservable1->changeMethod(); 398 #endif 399 400 391 401 simpleObservable1->signOff(simpleObservable2); 392 402 simpleObservable2->signOff(simpleObservable1);
Note:
See TracChangeset
for help on using the changeset viewer.