xtd
0.2.0
Loading...
Searching...
No Matches
◆
is_not_empty()
[1/4]
template<typename value_t >
static void xtd::tunit::collection_assert::is_not_empty
(
const value_t &
value
)
inline
static
Asserts that collection does not contain any item.
Parameters
value
The value to check is empty.
Exceptions
xtd::tunit::assert_error
If bad assertion.
Examples
std::vector<int> v1 = {0, 1, 2, 3};
std::vector<int> v2;
xtd::tunit::collection_assert::is_not_empty
(v1);
// test ok.
xtd::tunit::collection_assert::is_not_empty
(v2);
// test throws an assert_error exception.
xtd::tunit::collection_assert::is_not_empty
static void is_not_empty(const value_t &value)
Asserts that collection does not contain any item.
Definition
collection_assert.h:990
xtd
tunit
collection_assert
Generated on Sat Sep 14 2024 21:25:32 for xtd by
Gammasoft
. All rights reserved.