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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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