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

◆ is_NaN() [12/12]

static void xtd::tunit::valid::is_NaN ( float  value,
const xtd::string message,
const xtd::diagnostics::stack_frame stack_frame 
)
static

Validates that a value is NaN.

Parameters
valueThe value to check is NaN.
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
float v1 = std::numeric_limits<float>::quiet_NaN();
float v2 = 3.14159265358979323846;
xtd::tunit::valid::is_NaN(v1, "User message...", csf_); // test ok.
xtd::tunit::valid::is_NaN(v2, "User message...", csf_); // test fails.
static void is_NaN(double value)
that a value is NaN.
#define csf_
Provides information about the current stack frame.
Definition current_stack_frame.h:30