Go to the source code of this file.
◆ expectDoesNotThrow
| #define expectDoesNotThrow |
( |
| expr | ) |
|
Value:try \
{ \
(expr); \
expect (true); \
} \
catch (...) \
{ \
expect (false, "Expected: does not throw an exception, Actual: throws."); \
}
Checks that the result of an expression does not throw an exception.
◆ expectThrows
| #define expectThrows |
( |
| expr | ) |
|
Value:try \
{ \
(expr); \
expect (false, "Expected: throws an exception, Actual: does not throw."); \
} \
catch (...) \
{ \
expect (true); \
}
Checks that the result of an expression throws an exception.
◆ expectThrowsType
| #define expectThrowsType |
( |
| expr, |
|
|
| type ) |
Value:try \
{ \
(expr); \
expect (
false,
"Expected: throws an exception of type " #
type ", Actual: does not throw."); \
} \
{ \
expect (true); \
} \
catch (...) \
{ \
expect (
false,
"Expected: throws an exception of type " #
type ", Actual: throws another type."); \
}
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
Checks that the result of an expression throws an exception of a certain type.