Skip to content

Wrong position of NUnit1001 diagnostic for TestCase with four parameters or more #914

@cbersch

Description

@cbersch

For the following code, the diagnostic is at the wrong position:

public sealed class MyTest
{
    [TestCase("string", 12, 27, "other")]
    public void Foo(string actual, Type expected, int value, string other)
    {
    }
}

Actual result (with 4.10.0):

Image

Expected result
The squiggles should mark the 12.

This seems to happen if the number of parameters is four or more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions