Skip to content

Update xUnit1041 to not trigger on params ctor parameter #3499

@bradwilson

Description

@bradwilson

This is legal, but still triggers xUnit1041:

public class TestClass(MyFixture fixture, params object[] x) : IClassFixture<MyFixture>
{
    // ...tests...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Analyzershttps://github.com/xunit/xunit.analyzersBugA 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