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

◆ is_null() [24/24]

static void xtd::tunit::valid::is_null ( std::nullptr_t  pointer,
const xtd::string message,
const xtd::diagnostics::stack_frame stack_frame 
)
static

Validates that the pointer is 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.
stack_frameContains information about current file and current line.
Remarks
Always false, a nullptr_t is always equal to nullptr.
Examples
xtd::tunit::valid::is_null(nullptr, "User message...", csf_); // test ok.
static void is_null(const pointer_t *pointer)
Validates that the pointer is null.
Definition valid.h:1739
#define csf_
Provides information about the current stack frame.
Definition current_stack_frame.h:30