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

◆ are_not_equivalent_

#define are_not_equivalent_ (   ...)

#include <xtd.tunit/include/xtd/tunit/collection_assert.h>

Asserts that all collection items are equivalent.

Parameters
valueThe object to verify
messageAn optional user message to display if the assertion fails. This message can be seen in the unit test results.
Remarks
Contains information about current file and current line.
Can be used with xtd::tunit::collection_assert, xtd::tunit::collection_assume and xtd::tunit::collection_valid classes.
Examples
std::vector<int> a = {1, 2, 3, 4};
xtd::tunit::collection_assert::are_equivalent_({4, 3, 2, 1}, a); // test ok.
xtd::tunit::collection_assert::are_equivalent_({1, 2, 3, 5}, a, "User message..."); // test error.
xtd::tunit::collection_assume::are_equivalent_({4, 3, 2, 1}, a); // test ok.
xtd::tunit::collection_assume::are_equivalent_({1, 2, 3, 5}, a, "User message..."); // test error.
xtd::tunit::collection_valid::are_equivalent_({4, 3, 2, 1}, a); // test ok.
xtd::tunit::collection_valid::are_equivalent_({1, 2, 3, 5}, a, "User message..."); // test error.
@ a
The A key.