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

◆ ignore_

#define ignore_ (   ...)

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

Ignore current test. This is used by the other assert functions.

Parameters
messageA user facultative 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::ignore_("User message..."); // test throws an ignore_error exception.
xtd::tunit::assume::ignore_("User message..."); // test throws an ignore_error exception.
xtd::tunit::valid::ignore_("User message..."); // test throws an ignore_error exception.