Skip to content

Commit 0912548

Browse files
Removed redundant code
1 parent 89b1487 commit 0912548

2 files changed

Lines changed: 0 additions & 35 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp11/DocumentationRules/SA1600CSharp11UnitTests.cs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,9 @@
55

66
namespace StyleCop.Analyzers.Test.CSharp11.DocumentationRules
77
{
8-
using Microsoft.CodeAnalysis.Testing;
98
using StyleCop.Analyzers.Test.CSharp10.DocumentationRules;
10-
using static StyleCop.Analyzers.Test.Verifiers.StyleCopCodeFixVerifier<
11-
StyleCop.Analyzers.DocumentationRules.SA1600ElementsMustBeDocumented,
12-
StyleCop.Analyzers.DocumentationRules.SA1600CodeFixProvider>;
139

1410
public class SA1600CSharp11UnitTests : SA1600CSharp10UnitTests
1511
{
16-
protected override DiagnosticResult[] GetExpectedResultTestRegressionMethodGlobalNamespace(string code)
17-
{
18-
if (code == "public void {|#0:TestMember|}() { }")
19-
{
20-
return new[]
21-
{
22-
// /0/Test0.cs(4,1): error CS0106: The modifier 'public' is not valid for this item
23-
DiagnosticResult.CompilerError("CS0106").WithSpan(4, 1, 4, 7).WithArguments("public"),
24-
25-
// /0/Test0.cs(4,1): error CS8320: Feature 'top-level statements' is not available in C# 7.2. Please use language version 9.0 or greater.
26-
DiagnosticResult.CompilerError("CS8320").WithSpan(4, 1, 4, 29).WithArguments("top-level statements", "9.0"),
27-
28-
// /0/Test0.cs(4,1): error CS8805: Program using top-level statements must be an executable.
29-
DiagnosticResult.CompilerError("CS8805").WithSpan(4, 1, 4, 29),
30-
};
31-
}
32-
33-
return new[]
34-
{
35-
DiagnosticResult.CompilerError("CS0116").WithMessage("A namespace cannot directly contain members such as fields, methods or statements").WithLocation(0),
36-
Diagnostic().WithLocation(0),
37-
};
38-
}
3912
}
4013
}

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp11/ReadabilityRules/SA1101CSharp11UnitTests.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@
33

44
namespace StyleCop.Analyzers.Test.CSharp11.ReadabilityRules
55
{
6-
using System.Threading;
7-
using System.Threading.Tasks;
8-
using Microsoft.CodeAnalysis.CSharp;
96
using StyleCop.Analyzers.Test.CSharp10.ReadabilityRules;
10-
using StyleCop.Analyzers.Test.Verifiers;
11-
using Xunit;
12-
using static StyleCop.Analyzers.Test.Verifiers.StyleCopCodeFixVerifier<
13-
StyleCop.Analyzers.ReadabilityRules.SA1101PrefixLocalCallsWithThis,
14-
StyleCop.Analyzers.ReadabilityRules.SA1101CodeFixProvider>;
157

168
public class SA1101CSharp11UnitTests : SA1101CSharp10UnitTests
179
{

0 commit comments

Comments
 (0)