xtd
0.2.0
Loading...
Searching...
No Matches
◆
is_not_instance_of()
[2/4]
template<typename type_t , typename value_t >
static void xtd::tunit::valid::is_not_instance_of
(
const value_t &
value
,
const
xtd::diagnostics::stack_frame
&
stack_frame
)
inline
static
Validates that an object is not of the type supplied or a derived type.
Parameters
value
The object to verify
stack_frame
Contains information about current file and current line.
Examples
std::invalid_argument except(
"invalid argument"
);
xtd::tunit::valid::is_not_instance_of<std::bad_cast>(except,
csf_
);
// test ok.
xtd::tunit::valid::is_not_instance_of<std::logic_error>(except,
csf_
);
// test fails
csf_
#define csf_
Provides information about the current stack frame.
Definition
current_stack_frame.h:30
xtd
tunit
valid
Generated on Sat Sep 14 2024 21:25:32 for xtd by
Gammasoft
. All rights reserved.