AreSame()

System::TestPredicates::AreSame(const char *, const char *, const T1&, const T2&) function

Are-same-compares arguments for AreSame assertion translation.

template<typename T1,typename T2> testing::AssertionResult System::TestPredicates::AreSame(const char *lhs_expr, const char *rhs_expr, const T1 &lhs, const T2 &rhs)

Template parameters

ParameterDescription
T1LHS object type.
T2RHS object type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsconst T1&LHS value.
rhsconst T2&RHS value.

Return Value

gtest-styled assertion result.

See Also