IsInstanceOf()

System::TestPredicates::IsInstanceOf(const char *, const char *, const TypeInfo&, const T&) function

Is-instance-of-compares arguments for IsInstanceOf assertion translation.

template<typename T> testing::AssertionResult System::TestPredicates::IsInstanceOf(const char *lhs_expr, const char *rhs_expr, const TypeInfo &typeInfo, const T &obj)

Template parameters

ParameterDescription
TArgument type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
typeInfoconst TypeInfo&A typeInfo object that represents a type against which the type of obj is to be compared
objconst T&An object whose type to compare with the specified type

Return Value

gtest-styled assertion result.

See Also