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

◆ are_equal_

#define are_equal_ (   ...)

#include <xtd.tunit/include/xtd/tunit/assert.h>

Asserts that two type are equal.

Parameters
expectedthe expected value.
actualthe actual value.
messageAn optional user message to display if the assertion fails. This message can be seen in the unit test results .
Remarks
Contains information about current file and current line.
Can be used with xtd::tunit::assert, xtd::tunit::assume and xtd::tunit::valid classes.
Examples
xtd::tunit::assert::are_equal_(24, int(24)); // test throws an abort_error exception.
xtd::tunit::assume::are_equal_(24, int(24), "User message"); // test throws an abort_error exception.
xtd::tunit::valid::are_equal_(24, int(24)); // test throws an abort_error exception.