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

◆ are_equivalent() [1/4]

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

Asserts that all collection items are equivalent.

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::assert_errorIf bad assertion.
Examples
std::vector<int> a = {1, 2, 3, 4};
xtd::tunit::collection_assert::are_equivalent({1, 2, 3, 5}, a); // test throws an assert_error exception.
static void are_equivalent(const expected_t &expected, const actual_t &actual)
Asserts that all collection items are equivalent.
Definition collection_assert.h:393
@ a
The A key.