xtd 0.2.0
Loading...
Searching...
No Matches

◆ is_empty() [1/4]

template<typename value_t >
static void xtd::tunit::collection_assert::is_empty ( const value_t &  value)
inlinestatic

Asserts that collection contains an item.

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