Is it possible to verify the message thrown by an exception? Currently one can do:
ASSERT_THROW(statement, exception_type)
which is all fine and good but no where can I find a way to test e.what() is really what I am looking for. Is this not possible via google test?
Something like the following will work. Just catch the exception somehow and then do
EXPECT_STREQ
on thewhat()
call: