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
Parameter | Description |
---|---|
T1 | Expected collection element type. |
T2 | Actual collection element type. |
Arguments
Parameter | Type | Description |
---|---|---|
extra_msg | const System::String& | A custom string which is inserted before the expected value in the resulting message |
expected | const System::SharedPtr<System::Collections::Generic::IEnumerable<T1>>& | Expected collection. |
actual | const System::SharedPtr<System::Collections::Generic::IEnumerable<T2>>& | Actual collection. |
Return Value
User-friendly message on collections’ contents.
See Also
- Typedef SharedPtr
- Class String
- Class IEnumerable
- Struct CollectionAssertHelper
- Namespace System
- Library Aspose.Slides