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

◆ are_equal() [2/16]

template<typename expected_t , typename actual_t >
static void xtd::tunit::valid::are_equal ( const expected_t &  expected,
const actual_t &  actual,
const xtd::diagnostics::stack_frame stack_frame 
)
inlinestatic

Validates that two type are equal.

Parameters
expectedthe expected value.
actualthe actual value.
stack_frameContains information about current file and current line.
Examples
xtd::tunit::valid::are_equal(24, int(24), csf_); // test ok.
xtd::tunit::valid::are_equal(23, int(24), csf_); // test fails.
static void are_equal(const expected_t &expected, const actual_t &actual)
Validates that two type are equal.
Definition valid.h:40
#define csf_
Provides information about the current stack frame.
Definition current_stack_frame.h:30