CollectionsToMsg()

CollectionAssertHelper::CollectionsToMsg(const System::String&, const System::SharedPtr<System::Collections::Generic::IEnumerable<T1>>&, const System::SharedPtr<System::Collections::Generic::IEnumerable<T2>>&) method

Serializes two collections for message representation.

template<typename T1,typename T2> static System::String System::CollectionAssertHelper::CollectionsToMsg(const System::String &extra_msg, const System::SharedPtr<System::Collections::Generic::IEnumerable<T1>> &expected, const System::SharedPtr<System::Collections::Generic::IEnumerable<T2>> &actual)

Template parameters

ParameterDescription
T1Expected collection element type.
T2Actual collection element type.

Arguments

ParameterTypeDescription
extra_msgconst System::String&A custom string which is inserted before the expected value in the resulting message
expectedconst System::SharedPtr<System::Collections::Generic::IEnumerable<T1>>&Expected collection.
actualconst System::SharedPtr<System::Collections::Generic::IEnumerable<T2>>&Actual collection.

Return Value

User-friendly message on collections’ contents.

See Also