Skip to content

Equivalency of multidimensional arrays with zero size width #1167

@quinmars

Description

@quinmars

Following code throws an exception (System.IndexOutOfRangeException : Index was outside the bounds of the array.):

[Fact]
public void Test()
{
    Array a = new long[1,0] { { } };
    Array b = new long[1,0] { { } };

    a
        .Should().BeEquivalentTo(b);
}

I'd expect a to be equivalent to b.

I'm using version 5.9.0 of FluentAssertions.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions