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

◆ is_not_null() [23/24]

static void xtd::tunit::valid::is_not_null ( std::nullptr_t  pointer,
const xtd::string message 
)
static

Validates that the pointer is not null.

Parameters
pointerThe pointer to check is null.
messageA user message to display if the assertion fails. This message can be seen in the unit test results.
Remarks
Always false, a nullptr_t is always equal to nullptr.
Examples
xtd::tunit::valid::is_not_null(nullptr, "User message..."); // test fails.
static void is_not_null(const pointer_t *pointer)
Validates that the pointer is not null.
Definition valid.h:1348