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

◆ are_not_same() [3/4]

template<typename expected_t , typename actual_t >
static void xtd::tunit::valid::are_not_same ( const expected_t &  expected,
const actual_t &  actual,
const xtd::string message 
)
inlinestatic

Validates that two objects do refer to different objects.

Parameters
expectedthe expected value.
actualthe actual value.
messageA user message to display if the assertion fails. This message can be seen in the unit test results.
Examples
int a = 24;
int& b = a;
int c = 24;
xtd::tunit::valid::are_not_same(c, a, "User message..."); // test ok.
xtd::tunit::valid::are_not_same(b, a, "User message..."); // test fails.
static void are_not_same(const expected_t &expected, const actual_t &actual)
Validates that two objects do refer to different objects.
Definition valid.h:319
@ a
The A key.
@ c
The C key.
@ b
The B key.