Ivo Dvorak - 2005-02-11

Is there any macro like
CPPUNIT_ASSERT( ... ) that would _expect_ an exception? Something like
CPPUNIT_ERROR( CodeThatThrows(), ESomeExceptionClass )
which would be OK if the given exception comes? Currently I can do it for whole test method but that is not very convenient.

Thanks

Ivo