xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.

◆ abort() [3/4]

static void xtd::tunit::base_assert::abort ( const std::string &  message)

Abort current test. This is used by the other Assert functions.

messageA user message to display if the assertion fails. This message can be seen in the unit test results.
xtd::tunit::assert::abort("User message...", line_info_); // test throws an abort_error exception.