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
condition
The condition to check is true.
Exceptions
xtd::tunit::abort_error
If 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.
xtd::tunit::assume::is_false
static void is_false(bool condition)
Assumes that ta condition is false.
Examples
test_tunit.cpp
.
xtd
tunit
assume
Generated on Wed Sep 11 2024 22:08:27 for xtd by
Gammasoft
. All rights reserved.