xtd 0.2.0
Loading...
Searching...
No Matches

◆ abort_

#define abort_ ( )

#include <xtd.tunit/include/xtd/tunit/assert.h>

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

Exceptions
xtd::tunit::assert_errorIf bad assertion.
Remarks
Contains information about current file and current line.
Can be used with xtd::tunit::assert, xtd::tunit::assume and xtd::tunit::valid classes.
Examples
xtd::tunit::assert::abort_(); // test throws an abort_error exception.
xtd::tunit::assume::abort_(); // test throws an abort_error exception.
xtd::tunit::valid::abort_(); // test throws an abort_error exception.