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

◆ all_items_are_unique() [1/4]

template<typename collection_t >
static void xtd::tunit::collection_assume::all_items_are_unique ( const collection_t &  collection)
inlinestatic

Assumes that all collection items are unique.

Parameters
valueThe object to verify
messageA user message to display if the assertion fails. This message can be seen in the unit test results.
stack_frameContains information about current file and current line.
Exceptions
xtd::tunit::abort_errorIf bad assertion.
Examples
std::vector<int> a1 = {1, 2, 3, 4};
std::vector<int> a2 = {1, 2, 3, 4, 1};
xtd::tunit::collection_assume::all_items_are_unique(a2);// test throws an abort_error exception..
static void all_items_are_unique(const collection_t &collection)
Assumes that all collection items are unique.
Definition collection_assume.h:204