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)
inlinestatic

Asserts that collection does not contain any item.

Parameters
valueThe value to check is empty.
Exceptions
xtd::tunit::assert_errorIf bad assertion.
Examples
std::vector<int> v1 = {0, 1, 2, 3};
std::vector<int> v2;
xtd::tunit::collection_assert::is_not_empty(v2); // test throws an assert_error exception.
static void is_not_empty(const value_t &value)
Asserts that collection does not contain any item.
Definition collection_assert.h:990