Code inspection: NUnit.AutoFixture. Redundant argument in InlineAutoData attribute.
This inspection reports extra arguments in [InlineAutoData(...)] that do not correspond to any parameter in the test method signature. Those arguments are redundant because the method has no matching parameter to receive them.
Extra inline values make the attribute misleading and suggest that the test takes more explicit inputs than it actually does.
Example
[Test]
[InlineAutoData(60, 70, "test", 500)]
public void Test1(int x, int y, string s)
{
}
[Test]
[InlineAutoData(60, 70, "test")]
public void Test1(int x, int y, string s)
{
}
31 March 2026