How to call something to throw an exception?

  assertion, c++, exception, unit-testing

Write the test assertion you would use if you wanted to assert that a call to frobnicate()throws an exception of type bad_joke and to bail out of the test case if it does not.

Source: Windows Questions C++

LEAVE A COMMENT