| 65 | |
| 66 | private: |
| 67 | inline void TestRethrowAppend() { |
| 68 | try { |
| 69 | try { |
| 70 | ythrow yexception() << "it"; |
| 71 | } catch (yexception& e) { |
| 72 | e << "happens"; |
| 73 | |
| 74 | throw; |
| 75 | } |
| 76 | } catch (...) { |
| 77 | UNIT_ASSERT(CurrentExceptionMessage().Contains("ithappens")); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | inline void TestCurrentExceptionMessageWhenThereisNoException() { |
| 82 | UNIT_ASSERT(CurrentExceptionMessage() == "(NO EXCEPTION)"); |
nothing calls this directly
no test coverage detected