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

◆ is_greater_or_equal() [4/4]

template<typename value1_t , typename value2_t >
static void xtd::tunit::valid::is_greater_or_equal ( const value1_t &  val1,
const value2_t &  val2,
const xtd::string message,
const xtd::diagnostics::stack_frame stack_frame 
)
inlinestatic

Validates that the first value is greater than or equal to the second value.

Parameters
val1the first value.
val2the second value.
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
xtd::tunit::valid::is_greater_or_equal(24, 12, "User message...", csf_); // test ok.
xtd::tunit::valid::is_greater_or_equal(24, 24, "User message...", csf_); // test ok.
xtd::tunit::valid::is_greater_or_equal(24, 48, "User message...", csf_); // test fails.
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2)
Validates that the first value is greater than or equal to the second value.
Definition valid.h:765
#define csf_
Provides information about the current stack frame.
Definition current_stack_frame.h:30