xtd
0.2.0
Loading...
Searching...
No Matches
◆
throws_any()
[1/4]
static void xtd::tunit::valid::throws_any
(
const std::function< void()> &
statement
)
static
Validates that the statement does not throw an exception.
Parameters
statement
The statement that verify.
Examples
std::vector<int> v1 = {1, 2, 3, 4};
xtd::tunit::valid::throws_any
([&] {v1.at(5);});
// test ok.
xtd::tunit::valid::throws_any
([&] {v1.at(2);});
// test fails.
xtd::tunit::valid::throws_any
static void throws_any(const std::function< void()> &statement)
Validates that the statement does not throw an exception.
xtd
tunit
valid
Generated on Sat Sep 14 2024 21:25:33 for xtd by
Gammasoft
. All rights reserved.