Skip to content

Commit acb256e

Browse files
committed
Extended the test case
1 parent 4588377 commit acb256e

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test/SpacingRules/SA1004UnitTests.cs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,12 @@ public class TypeName
178178
{
179179
/**
180180
*<summary>
181-
*The summary text.
181+
* The summary text.
182182
*</summary>
183+
* <param name=""x"">The document root.</param>
184+
* <param name=""y"">The XML header token.</param>
183185
*/
184-
private void Method1()
186+
private void Method1(int x, int y)
185187
{
186188
}
187189
}
@@ -192,10 +194,12 @@ public class TypeName
192194
{
193195
/**
194196
* <summary>
195-
* The summary text.
197+
* The summary text.
196198
* </summary>
199+
* <param name=""x"">The document root.</param>
200+
* <param name=""y"">The XML header token.</param>
197201
*/
198-
private void Method1()
202+
private void Method1(int x, int y)
199203
{
200204
}
201205
}
@@ -204,8 +208,9 @@ private void Method1()
204208
DiagnosticResult[] expected =
205209
{
206210
this.CSharpDiagnostic().WithLocation(5, 7),
207-
this.CSharpDiagnostic().WithLocation(6, 7),
208-
this.CSharpDiagnostic().WithLocation(7, 7)
211+
this.CSharpDiagnostic().WithLocation(7, 7),
212+
this.CSharpDiagnostic().WithLocation(8, 7),
213+
this.CSharpDiagnostic().WithLocation(9, 7)
209214
};
210215

211216
await this.VerifyCSharpDiagnosticAsync(testCode, expected, CancellationToken.None).ConfigureAwait(false);

0 commit comments

Comments
 (0)