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

◆ is_true() [1/4]

static void xtd::tunit::assume::is_true ( bool  condition)
static

Assumes that ta condition is true.

Parameters
conditionThe condition to check is true.
Exceptions
xtd::tunit::abort_errorIf bad assertion.
Examples
std::string s1;
std::string s2 = "Anything";
xtd::tunit::assume::is_false(std::empty(s1)); // test ok.
xtd::tunit::assume::is_false(std::empty(s2)); // test throws an abort_error exception.
static void is_false(bool condition)
Assumes that ta condition is false.
Examples
test_tunit.cpp.