xtd
0.2.0
Loading...
Searching...
No Matches
◆
is_negative()
[2/4]
template<typename value_t >
static void xtd::tunit::valid::is_negative
(
const value_t &
value
,
const
xtd::diagnostics::stack_frame
&
stack_frame
)
inline
static
Validates that ta condition is negative.
Parameters
value
The value to check is negative.
stack_frame
Contains information about current file and current line.
Examples
int
i1 = -1;
int
i2 = 1;
xtd::tunit::valid::is_negative
(i1,
csf_
);
// test ok.
xtd::tunit::valid::is_negative
(i2,
csf_
);
// test fails.
xtd::tunit::valid::is_negative
static void is_negative(const value_t &value)
Validates that ta condition is negative.
Definition
valid.h:1152
csf_
#define csf_
Provides information about the current stack frame.
Definition
current_stack_frame.h:30
xtd
tunit
valid
Generated on Sat Sep 14 2024 21:25:32 for xtd by
Gammasoft
. All rights reserved.