xtd
0.2.0
Loading...
Searching...
No Matches
◆
are_same()
[1/4]
template<typename expected_t , typename actual_t >
static void xtd::tunit::valid::are_same
(
const expected_t &
expected
,
const actual_t &
actual
)
inline
static
Validates that two objects do refer to different objects.
Parameters
expected
the expected value.
actual
the actual value.
Examples
int
a
= 24;
int
&
b
=
a
;
int
c
= 24;
xtd::tunit::valid::are_same
(
b
,
a
);
// test ok.
xtd::tunit::valid::are_same
(
c
,
a
);
// test fails.
xtd::tunit::valid::are_same
static void are_same(const expected_t &expected, const actual_t &actual)
Validates that two objects do refer to different objects.
Definition
valid.h:385
xtd::console_key::a
@ a
The A key.
xtd::console_key::c
@ c
The C key.
xtd::console_key::b
@ b
The B key.
xtd
tunit
valid
Generated on Sat Sep 14 2024 21:25:32 for xtd by
Gammasoft
. All rights reserved.