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

◆ is_not_empty() [3/4]

template<typename value_t >
static void xtd::tunit::valid::is_not_empty ( const value_t &  value,
const xtd::string message 
)
inlinestatic

Validates that collection does not contain any item.

Parameters
valueThe value to check is empty.
messageA user message to display if the assertion fails. This message can be seen in the unit test results.
Examples
std::vector<int> v1 = {0, 1, 2, 3};
std::vector<int> v2;
xtd::tunit::valid::is_not_empty(v1, "User message..."); // test ok.
xtd::tunit::valid::is_not_empty(v2, "User message..."); // test fails.
static void is_not_empty(const value_t &value)
Validates that collection oes not contain any item.
Definition valid.h:1210