Skip to content

Assert.Equal<T>(IEnumerable<T>, IEnumerable<T>) enumerates multiple times #2402

@ericstj

Description

@ericstj

Regression introduced here:
xunit/assert.xunit@bb5d19d#diff-5ddb02071f63a19de4084075b7e4e26c92234035da84fc639d197f2b2ce1dd4cR65

It looks to me like this should return rather than fall through to calling compare.Equals again. It might even be further simplified as this: ericstj/assert.xunit@c195a15

Here's a repro for the failure
xunitEnum.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Assertion libraryxunit.v3.assertBugA fault in an existing featurehelp wantedA community-provided PR would be welcomed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions