xtd
0.2.0
Loading...
Searching...
No Matches
◆
are_not_same()
[2/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::diagnostics::stack_frame
&
stack_frame
)
inline
static
Validates that two objects do refer to different objects.
Parameters
expected
the expected value.
actual
the actual value.
stack_frame
Contains information about current file and current line.
Examples
int
a
= 24;
int
&
b
=
a
;
int
c
= 24;
xtd::tunit::valid::are_not_same
(
c
,
a
,
csf_
);
// test ok.
xtd::tunit::valid::are_not_same
(
b
,
a
, stack_frame);
// test fails.
xtd::tunit::valid::are_not_same
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
csf_
#define csf_
Provides information about the current stack frame.
Definition
current_stack_frame.h:30
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.