Skip to content

Commit b308353

Browse files
committed
Fix tests that failed after update to Roslyn 1.2
1 parent dadfad6 commit b308353

3 files changed

Lines changed: 0 additions & 10 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test/NamingRules/SA1300UnitTests.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,7 @@ public async Task TestLowerCaseComlicatedNamespaceAsync()
6161
DiagnosticResult[] expected = new[]
6262
{
6363
this.CSharpDiagnostic().WithArguments("test").WithLocation(1, 11),
64-
this.CSharpDiagnostic().WithArguments("test").WithLocation(1, 11),
65-
this.CSharpDiagnostic().WithArguments("test").WithLocation(1, 11),
66-
this.CSharpDiagnostic().WithArguments("foo").WithLocation(1, 16),
67-
this.CSharpDiagnostic().WithArguments("foo").WithLocation(1, 16),
6864
this.CSharpDiagnostic().WithArguments("foo").WithLocation(1, 16),
69-
this.CSharpDiagnostic().WithArguments("bar").WithLocation(1, 20),
70-
this.CSharpDiagnostic().WithArguments("bar").WithLocation(1, 20),
7165
this.CSharpDiagnostic().WithArguments("bar").WithLocation(1, 20)
7266
};
7367

StyleCop.Analyzers/StyleCop.Analyzers.Test/OrderingRules/SA1200OutsideNamespaceUnitTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ namespace System.MyExtension
142142
DiagnosticResult[] expectedResults =
143143
{
144144
this.CSharpDiagnostic(SA1200UsingDirectivesMustBePlacedCorrectly.DescriptorOutside).WithLocation(3, 5),
145-
this.CSharpDiagnostic(SA1200UsingDirectivesMustBePlacedCorrectly.DescriptorOutside).WithLocation(3, 5),
146-
this.CSharpDiagnostic(SA1200UsingDirectivesMustBePlacedCorrectly.DescriptorOutside).WithLocation(4, 5),
147145
this.CSharpDiagnostic(SA1200UsingDirectivesMustBePlacedCorrectly.DescriptorOutside).WithLocation(4, 5),
148146
};
149147

StyleCop.Analyzers/StyleCop.Analyzers.Test/OrderingRules/SA1210UnitTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,6 @@ namespace Newtonsoft.Json
361361
DiagnosticResult[] expected =
362362
{
363363
this.CSharpDiagnostic().WithLocation(8, 5),
364-
this.CSharpDiagnostic().WithLocation(8, 5),
365-
this.CSharpDiagnostic().WithLocation(8, 5),
366364
};
367365

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

0 commit comments

Comments
 (0)