Exception Handling
Exception 및 내부 메시지를 확인하고 싶을 경우
TEST(Exception, HasCertainMessage ) { // this tests _that_ the expected exception is thrown EXPECT_THROW({ try { thisShallThrow(); } catch( const MyException& e ) { // and this tests that it has the correct message EXPECT_STREQ( "Cucumber overflow", e.what() ); throw; } }, MyException ); }