PrintToString()

System::TestPredicates::Details::PrintToString(const T&) function

Prints object to string by selecting proper serializer function.

template<typename T> std::enable_if_t<!TypeTraits::IsEnumerable<T>::value, std::string> System::TestPredicates::Details::PrintToString(const T &value)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
valueconst T&Object to print.

Return Value

String representations of object passed.

System::TestPredicates::Details::PrintToString(const T&) function

Prints ICollection-style containers to string by printing their elements (not more than 32).

template<typename T> std::enable_if_t<TypeTraits::IsEnumerable<T>::value, std::string> System::TestPredicates::Details::PrintToString(const T &value)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
valueconst T&Object to print.

Return Value

Joint string representations of contained elements.

System::TestPredicates::Details::PrintToString(std::nullptr_t) function

Prints nullptr to string.

std::string System::TestPredicates::Details::PrintToString(std::nullptr_t)

Return Value

"nullptr" string.

System::TestPredicates::Details::PrintToString(const Collections::Generic::IEnumerable<bool>&) function

Prints IEnumerable collections to string by printing their elements (not more than 32).

std::string System::TestPredicates::Details::PrintToString(const Collections::Generic::IEnumerable<bool> &value)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
valueconst Collections::Generic::IEnumerable<bool>&Object to print.

Return Value

Joint string representations of contained elements.

See Also