We have code that throws std::runtime_error and we are using the Boost unit testing framework.
At the moment we are using BOOST_CHECK_THROW. Unfortunately this does not check that the what message.
Is there a version of BOOST_CHECK_THROW that can check that an exception has been raised and that exception has the correct message?
Aucun commentaire:
Enregistrer un commentaire