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

◆ is_empty() [1/4]

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

Assumes that collection contains an item.

Parameters
valueThe value to check is empty.
Exceptions
xtd::tunit::abort_errorIf bad assertion.
Examples
std::vector<int> v1;
std::vector<int> v2 = {0, 1, 2, 3};
xtd::tunit::collection_assume:is_empty(v2);// test throws an abort_error exception.
static void is_empty(const value_t &value)
Assumes that collection contains an item.
Definition collection_assume.h:906
The collection_assume class contains a collection of static methods that implement the most collectio...
Definition collection_assume.h:22