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

◆ is_not_zero() [4/4]

template<typename value_t >
static void xtd::tunit::valid::is_not_zero ( const value_t &  value,
const xtd::string message,
const xtd::diagnostics::stack_frame stack_frame 
)
inlinestatic

Validates that ta condition is not zero.

Parameters
valueThe value to check is not zero.
messageA user message to display if the assertion fails. This message can be seen in the unit test results.
stack_frameContains information about current file and current line.
Examples
int i1 = 42;
int i2 = 0;
xtd::tunit::valid::is_not_zero(i1, "User message...", csf_); // test ok.
xtd::tunit::valid::is_not_zero(i2, "User message...", csf_); // test fails.
static void is_not_zero(const value_t &value)
Validates that ta condition is not zero.
Definition valid.h:1680
#define csf_
Provides information about the current stack frame.
Definition current_stack_frame.h:30