When comparing multi-dimensional `Array`s using `BeEquivalentTo`
we weren't handling the case of empty `Array`s, which threw an
`IndexOutOfRangeException` when it tried to get an element.
This fixesfluentassertions#1167
jnyrup
added a commit
to jnyrup/fluentassertions
that referenced
this issue
Oct 25, 2019
When comparing multi-dimensional `Array`s using `BeEquivalentTo`
we weren't handling the case of empty `Array`s, which threw an
`IndexOutOfRangeException` when it tried to get an element.
This fixesfluentassertions#1167
When comparing multi-dimensional `Array`s using `BeEquivalentTo`
we weren't handling the case of empty `Array`s, which threw an
`IndexOutOfRangeException` when it tried to get an element.
This fixesfluentassertions#1167
Following code throws an exception (
System.IndexOutOfRangeException : Index was outside the bounds of the array.
):I'd expect
a
to be equivalent tob
.I'm using version 5.9.0 of FluentAssertions.
The text was updated successfully, but these errors were encountered: