///////////////////////////////////////////////////////////////////// // Tested2.cpp - Code tested in Test2 // // // // Jim Fawcett, CSE681 - Software Modeling and Analysis, Fall 2017 // ///////////////////////////////////////////////////////////////////// #define IN_DLL #include "Tested2.h" #include void Tested2::throwException() { std::exception ex("intentionally thrown exception"); throw ex; } #ifdef TEST_TESTED2 int main() { Tested2 t2; try { t2.throwException(); } catch (std::exception& ex) { std::cout << "\n " << ex.what() << "\n"; } return 0; } #endif