AreEqualImpl()

Contents
[ ]

System::TestPredicates::AreEqualImpl(const char *, const char *, const T1, const T2, long long) function

Equal-compares floating point with arithmetic types.

template<typename T1,typename T2> std::enable_if<TypeTraits::AreFPandArithmetic<T1, T2>::value, testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, const T1 lhs, const T2 rhs, long long s)

Template parameters

ParameterDescription
T1LHS object type.
T2RHS object type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsconst T1LHS value.
rhsconst T2RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

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

Equal-compares values one or both of them being Decimal.

template<typename T1,typename T2> std::enable_if<TypeTraits::AnyOfDecimal<T1, T2>::value, testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, const T1 &lhs, const T2 &rhs, long long s)

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.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, const T&, const T&, long long) function

Equal-compares non-pointer types using Equals method provided.

template<typename T> std::enable_if<!IsSmartPtr<T>::value &&detail::has_method_equals<T>::value, testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, const T &lhs, const T &rhs, long long s)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsconst T&LHS value.
rhsconst T&RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, T&, const T&, long long) function

Equal-compares non-pointer types using Equals method provided.

template<typename T> std::enable_if<!IsSmartPtr<T>::value &&detail::has_method_equals<T>::value, testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, T &lhs, const T &rhs, long long s)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsT&LHS value.
rhsconst T&RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, const T&, const T&, long long) function

Equal-compares non-pointer types using operator == provided.

template<typename T> std::enable_if<!IsSmartPtr<T>::value &&std::is_class<T>::value &&!detail::has_method_equals<T>::value &&detail::has_operator_equal<T>::value, testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, const T &lhs, const T &rhs, long long s)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsconst T&LHS value.
rhsconst T&RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, T, const System::SharedPtr<Object>&, long long) function

Equal-compares boxable with SmartPtr values.

template<typename T> std::enable_if<IsBoxable<T>::value &&!IsStringByteSequence<T, char16_t>::value, testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, T lhs, const System::SharedPtr<Object> &rhs, long long s)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsTLHS value.
rhsconst System::SharedPtr<Object>&RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, const System::SharedPtr<Object>&, T, long long) function

Equal-compares boxable with SmartPtr values.

template<typename T> std::enable_if<IsBoxable<T>::value &&!IsStringByteSequence<T, char16_t>::value, testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, const System::SharedPtr<Object> &lhs, T rhs, long long s)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsconst System::SharedPtr<Object>&LHS value.
rhsTRHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, const char16_t *, const System::SharedPtr<Object>&, long long) function

Equal-compares string literal with SmartPtr values using unboxing.

testing::AssertionResult System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, const char16_t *lhs, const System::SharedPtr<Object> &rhs, long long s)

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsconst char16_t *LHS value.
rhsconst System::SharedPtr<Object>&RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, const System::SharedPtr<Object>&, const char16_t *, long long) function

Equal-compares string literal with SmartPtr values using unboxing.

testing::AssertionResult System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, const System::SharedPtr<Object> &lhs, const char16_t *rhs, long long s)

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsconst System::SharedPtr<Object>&LHS value.
rhsconst char16_t *RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, T, std::nullptr_t, long long) function

Equal-compares random type wiht nullptr.

template<typename T> testing::AssertionResult System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, T lhs, std::nullptr_t, long long s)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsTLHS value.
sstd::nullptr_tA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, std::nullptr_t, T, long long) function

Equal-compares random type with nullptr.

template<typename T> testing::AssertionResult System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, std::nullptr_t, T rhs, long long s)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
rhsstd::nullptr_tRHS value.
sTA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

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

Equal-compares pointer types.

template<typename T1,typename T2> std::enable_if<IsSmartPtr<T1>::value &&IsSmartPtr<T2>::value &&(!std::is_base_of<System::IO::Stream, typenameT1::Pointee_>::value||!std::is_base_of<System::IO::Stream, typenameT2::Pointee_>::value), testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, const T1 &lhs, const T2 &rhs, long long s)

Template parameters

ParameterDescription
T1LHS type.
T2RHS type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsconst T1&LHS value.
rhsconst T2&RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

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

Equal-compares pointer types.

template<typename T1,typename T2> std::enable_if<IsSmartPtr<T1>::value &&IsSmartPtr<T2>::value &&std::is_base_of<System::IO::Stream, typenameT1::Pointee_>::value &&std::is_base_of<System::IO::Stream, typenameT2::Pointee_>::value, testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, const T1 &lhs, const T2 &rhs, long long s)

Template parameters

ParameterDescription
T1LHS type.
T2RHS type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsconst T1&LHS value.
rhsconst T2&RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, T1, const Nullable<T2>&, long long) function

Equal-compares a random type with a Nullable value.

template<typename T1,typename T2> std::enable_if<!std::is_null_pointer<T1>::value &&!IsNullable<T1>::value, testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, T1 lhs, const Nullable<T2> &rhs, long long s)

Template parameters

ParameterDescription
T1LHS type.
T2RHS type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsT1LHS value.
rhsconst Nullable<T2>&RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, const Nullable<T1>&, T2, long long) function

Equal-compares a Nullable value with a random type.

template<typename T1,typename T2> std::enable_if<!std::is_null_pointer<T2>::value &&!IsNullable<T2>::value, testing::AssertionResult>::type System::TestPredicates::AreEqualImpl(const char *lhs_expr, const char *rhs_expr, const Nullable<T1> &lhs, T2 rhs, long long s)

Template parameters

ParameterDescription
T1LHS type.
T2RHS type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsconst Nullable<T1>&LHS value.
rhsT2RHS value.
slong longA service parameter that serves as a selector of the implementation of the function; the value of the parameter is ignored

Return Value

gtest-styled assertion result.

System::TestPredicates::AreEqualImpl(const char *, const char *, T1, T2, int) function

Equal-compares random types using gtest altorithms.

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

Template parameters

ParameterDescription
T1LHS type.
T2RHS type.

Arguments

ParameterTypeDescription
lhs_exprconst char *LHS expression.
rhs_exprconst char *RHS expression.
lhsT1LHS value.
rhsT2RHS value.

Return Value

gtest-styled assertion result.

See Also