Skip to content

Commit fe4475d

Browse files
authored
Merge pull request #2576 from vweijsters/fix-2568
Added test case for #2568
2 parents 70b7870 + 33a2e83 commit fe4475d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp7/SpacingRules/SA1008CSharp7UnitTests.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,5 +983,19 @@ public void TestMethod()
983983

984984
await this.VerifyCSharpDiagnosticAsync(testCode, EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
985985
}
986+
987+
[Fact]
988+
[WorkItem(2568, "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2568")]
989+
public async Task TestTupleExpressionParamsAsync()
990+
{
991+
var testCode = @"public class TestClass
992+
{
993+
public void TestMethod(params (string name, string value)[] options)
994+
{
995+
}
996+
}";
997+
998+
await this.VerifyCSharpDiagnosticAsync(testCode, EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
999+
}
9861000
}
9871001
}

0 commit comments

Comments
 (0)