|
template<typename T1 , typename T2 > |
static System::SharedPtr< System::Collections::Generic::Dictionary< T1, int32_t > > | MakeDiff (const System::SharedPtr< System::Collections::Generic::IEnumerable< T1 > > &expected, const System::SharedPtr< System::Collections::Generic::IEnumerable< T2 > > &actual) |
| Calculates 'diff' between two collections. For every element of each collection as key resulting value will be positive if element occures more times in "expected" collection, negative if element occures more times in "actual" collection, and zero if element occures equal times in each collection. More...
|
|
static bool | CheckDiffForAll (const std::function< bool(int)> &pred, const System::SharedPtr< System::Collections::Generic::ICollection< int32_t > > &values) |
| Checks that all collection elements adhere the predicate. More...
|
|
static bool | CheckDiffForAny (const std::function< bool(int)> &pred, const System::SharedPtr< System::Collections::Generic::ICollection< int32_t > > &values) |
| Checks that any collection element adheres the predicate. More...
|
|
template<typename T > |
static System::String | IEnumerableToStr (const System::SharedPtr< System::Collections::Generic::IEnumerable< T > > &ie) |
| Converts collection to string by joining string representations of elements. More...
|
|
template<typename T1 , typename T2 > |
static System::String | CollectionsToMsg (const System::String &extra_msg, const System::SharedPtr< System::Collections::Generic::IEnumerable< T1 > > &expected, const System::SharedPtr< System::Collections::Generic::IEnumerable< T2 > > &actual) |
| Serializes two collections for message representation. More...
|
|
static System::String | ToFullMessage (const System::String &message=u"") |
| Formats string to be used as message text. More...
|
|
Heler API for collection-related operations.