PowerAssert/PowerAssert.Net — pull request #2 by Porges (2013-09-26 11:10:18+00:00)
Title: More hints for strings & ienumerables

Some examples:

For strings that differ it shows the index and the items that don't match. This also takes into account if a StringComparer is used.

s1.Equals(s2, OrdinalIgnoreCase)
' | '
| | "hello2"
| False, strings differ at index 5, '1' != '2'
"Hello1"

For enumerables it will show the differing items and the index.

s1.SequenceEqual(s2)
' | '
| | "hello2"
| False, enumerables differ at index 5, '1' != '2'
"hello1"

Because it now shows you differing objects I trimmed the max number printed way down to 5. This might be contentious... it will also print the total number of items if the enumerable is a list (assumed to have O(1) Count):

x.SequenceEqual(y)
' | '
| | [1, 2, 3, 4, 5, ... (6 total)]
| False, enumerables differ at index 5, 6 != 7
[1, 2, 3, 4, 5, ... (6 total)]