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

◆ is_NaN() [11/12]

static void xtd::tunit::valid::is_NaN ( float  value,
const xtd::string message 
)
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.
Examples
float v1 = std::numeric_limits<float>::quiet_NaN();
float v2 = 3.14159265358979323846;
xtd::tunit::valid::is_NaN(v1, "User message..."); // test ok.
xtd::tunit::valid::is_NaN(v2, "User message..."); // test fails.
static void is_NaN(double value)
that a value is NaN.