Line | Count | Source |
1 | #include "gtest/gtest.h" | |
2 | #include "zserio/ChoiceCaseException.h" | |
3 | ||
4 | namespace zserio | |
5 | { | |
6 | ||
7 | TEST(ChoiceCaseExceptionTest, correctTypeAfterAppend) | |
8 | 1 | { |
9 | 1 | ASSERT_THROW( |
10 | 1 | { |
11 | 1 | throw ChoiceCaseException() |
12 | 1 | << "Test that appending using operator<< persists the exception type!"; |
13 | 1 | }, |
14 | 1 | ChoiceCaseException); |
15 | 1 | } |
16 | ||
17 | } // namespace zserio |