System::TestPredicates::Details

Functions

FunctionDescription
std::enable_if_t<!TypeTraits::IsEnumerable<T>::value, std::string> PrintToString(const T&)Prints object to string by selecting proper serializer function.
std::enable_if_t<TypeTraits::IsEnumerable<T>::value, std::string> PrintToString(const T&)Prints ICollection-style containers to string by printing their elements (not more than 32).
std::string PrintToString(std::nullptr_t)Prints nullptr to string.
std::string PrintToString(const Collections::Generic::IEnumerable<bool>&)Prints IEnumerable collections to string by printing their elements (not more than 32).
std::enable_if<System::Details::HasToString<T>::value, std::string>::type PrintToStringImpl(const SharedPtr<T>&, long long)Prints System::Object subclass to string using ToString() method.
std::enable_if<System::Details::HasToString<T>::value, std::string>::type PrintToStringImpl(const WeakPtr<T>&, long long)Prints System::Object subclass to string using ToString() method.
std::enable_if<!TypeTraits::has_print_to_method<T>::value&&System::Details::HasToString<T>::value, std::string>::type PrintToStringImpl(const T&, long long)Prints object to string using ToString() method.
std::enable_if<TypeTraits::has_print_to_method<T>::value&&!TypeTraits::IsEnumerable<T>::value, std::string>::type PrintToStringImpl(const T&, long long)Prints object to string using PrintTo method.
std::enable_if<TypeTraits::has_print_to_method<T>::value&&TypeTraits::IsEnumerable<T>::value, std::string>::type PrintToStringImpl(const T&, long long)Prints object to string using PrintTo method.
std::string PrintToStringImpl(const std::pair<T1, T2>&, long long)Prints pair to string.
std::string PrintToStringImpl(const Collections::Generic::KeyValuePair<T1, T2>&, long long)Prints pair to string.
std::enable_if<TypeTraits::IsCppContainer<T>::value&&!std::is_base_of<Object, T>::value, std::string>::type PrintToStringImpl(const T&, long long)Prints STL-style containers to string by printing their elements (not more than 32).
std::string PrintToStringImpl(const T&, int)Prints other types to string by using gtest-provided functions.
testing::AssertionResult EqFailure(const char *, const char *, T1&, T2&)Formats == assertion failure for output.
testing::AssertionResult NotEqFailure(const char *, const char *, T1&, T2&)Formats != assertion failure for output.
testing::AssertionResult SameFailure(const char *, const char *, T1&, T2&)Formats ‘same’ assertion failure for output.
testing::AssertionResult NotSameFailure(const char *, const char *, T1&, T2&)Formats ’not same’ assertion failure for output.