integrated AssertionHandler into INTERNAL_CATCH_THROWS_AS

This commit is contained in:
Phil Nash 2017-08-08 19:43:07 +01:00
parent f033f4f184
commit 8a97beece2
3 changed files with 11 additions and 7 deletions

View file

@ -90,6 +90,9 @@ namespace Catch {
void AssertionHandler::handle( ResultWas::OfType resultType ) {
handle( resultType, nullptr, false );
}
auto AssertionHandler::allowThrows() const -> bool {
return getCurrentContext().getConfig()->allowThrows();
}
auto AssertionHandler::shouldDebugBreak() const -> bool {
return m_shouldDebugBreak;