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

◆ is_not_empty() [1/4]

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

Assumes that collection does not contain any item.

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