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.

◆ is_false() [1/4]

static void xtd::tunit::assert::is_false ( bool  condition)
inlinestatic

Asserts that ta condition is false.

Parameters
conditionThe condition to check is false.
Exceptions
xtd::tunit::assertion_errorIf bad assertion.
Examples
std::string s1 = "Anything";
std::string s2;
xtd::tunit::assert::is_false(std::empty(s1)); // test ok.
xtd::tunit::assert::is_false(std::empty(s2)); // test throws an assertion_error exception.