Skip to content

Invalid xUnit1025 diagnostic for different InlineData values #1877

@drewnoakes

Description

@drewnoakes
[Theory]
[InlineData(new int[] {1, 2, 3}, new int[] {},        new int[] {},        new int[] {1, 2, 3})]
[InlineData(new int[] {1, 2, 3}, new int[] {1, 2, 3}, new int[] {},        new int[] {})] //      <-- this line
public void ProducesCorrectDiff(int[] before, int[] after, int[] added, int[] removed)

The analyzer thinks the highlighted InlineData is a duplicate which it clearly isn't.

EDIT given improved understanding of the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Analyzershttps://github.com/xunit/xunit.analyzersBugA fault in an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions