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

◆ fail() [1/5]

static void xtd::tunit::base_assert::fail ( )
static

Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.

Exceptions
xtd::tunit::assert_errorIf bad assertion.
Examples
xtd::tunit::assert::fail(); // test throws an assert_error exception.
static void fail()
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
Examples
math_assert.cpp, math_assume.cpp, and math_valid.cpp.