nunit: Bad error message if collections have different types
While framework supports checking equality of collections of different type, error message is not very informative in case of failure:
Expected is <System.String[1]>, actual is <System.Linq.Enumerable+SelectListIterator`2[NamespaceA.SomeType,System.String]>
Values differ at index [0]
Possible options to fix: a) always log collections as items (e.g. “< 1,2,3… >”), ignoring type b) log actual and expected item where failed
(Personally I prefer option a) )
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 28 (28 by maintainers)
Yeah, will take a look!
Ok, so seems like I haven’t provided all details (because I missed them myself). Such uninformative message occurs when there are non-collection arguments, and quantity differs:
---->
Would it make sense to log something like:
?