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
pointer
The pointer to check is null.
message
A 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.
xtd::tunit::valid::is_not_null
static void is_not_null(const pointer_t *pointer)
Validates that the pointer is not null.
Definition
valid.h:1348
xtd
tunit
valid
Generated on Sat Sep 14 2024 21:25:32 for xtd by
Gammasoft
. All rights reserved.