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

◆ are_equal() [1/4]

template<typename expected_t , typename actual_t >
static void xtd::tunit::collection_valid::are_equal ( const expected_t &  expected,
const actual_t &  actual 
)
inlinestatic

Validates that all collection items are equal.

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.
Examples
std::vector<int> a = {1, 2, 3, 4};
xtd::tunit::collection_valid::are_equal({1, 2, 3, 4}, a); // test ok.
xtd::tunit::collection_valid::are_equal({4, 3, 2, 1}, a); // test fails.
static void are_equal(const expected_t &expected, const actual_t &actual)
Validates that all collection items are equal.
Definition collection_valid.h:271
@ a
The A key.