diff options
Diffstat (limited to 'test')
6 files changed, 8 insertions, 8 deletions
diff --git a/test/ILLink.RoslynAnalyzer.Tests.Generator/TestCaseGenerator.cs b/test/ILLink.RoslynAnalyzer.Tests.Generator/TestCaseGenerator.cs index a3753d49e..7ed577262 100644 --- a/test/ILLink.RoslynAnalyzer.Tests.Generator/TestCaseGenerator.cs +++ b/test/ILLink.RoslynAnalyzer.Tests.Generator/TestCaseGenerator.cs @@ -10,7 +10,7 @@ using Microsoft.CodeAnalysis.CSharp.Syntax; namespace ILLink.RoslynAnalyzer.Tests { - class TestCases + sealed class TestCases { // Maps from suite name to a set of testcase names. // Suite name is: @@ -179,7 +179,7 @@ namespace {TestNamespace}{suiteNamespacePart} } } - class ExistingTestCaseDiscoverer : ISyntaxContextReceiver + sealed class ExistingTestCaseDiscoverer : ISyntaxContextReceiver { public readonly TestCases ExistingTestCases = new TestCases (); diff --git a/test/ILLink.RoslynAnalyzer.Tests/TestCaseCompilation.cs b/test/ILLink.RoslynAnalyzer.Tests/TestCaseCompilation.cs index aaa35beb9..e45d10a01 100644 --- a/test/ILLink.RoslynAnalyzer.Tests/TestCaseCompilation.cs +++ b/test/ILLink.RoslynAnalyzer.Tests/TestCaseCompilation.cs @@ -63,7 +63,7 @@ namespace ILLink.RoslynAnalyzer.Tests return (new CompilationWithAnalyzers (comp, SupportedDiagnosticAnalyzers, compWithAnalyzerOptions), comp.GetSemanticModel (src), exceptionDiagnostics); } - class SimpleAnalyzerOptions : AnalyzerConfigOptionsProvider + sealed class SimpleAnalyzerOptions : AnalyzerConfigOptionsProvider { public SimpleAnalyzerOptions ((string, string)[]? globalOptions) { @@ -81,7 +81,7 @@ namespace ILLink.RoslynAnalyzer.Tests public override AnalyzerConfigOptions GetOptions (AdditionalText textFile) => SimpleAnalyzerConfigOptions.Empty; - class SimpleAnalyzerConfigOptions : AnalyzerConfigOptions + sealed class SimpleAnalyzerConfigOptions : AnalyzerConfigOptions { public static readonly SimpleAnalyzerConfigOptions Empty = new SimpleAnalyzerConfigOptions (ImmutableDictionary<string, string>.Empty); diff --git a/test/ILLink.RoslynAnalyzer.Tests/TestChecker.cs b/test/ILLink.RoslynAnalyzer.Tests/TestChecker.cs index 2c49d205c..750271099 100644 --- a/test/ILLink.RoslynAnalyzer.Tests/TestChecker.cs +++ b/test/ILLink.RoslynAnalyzer.Tests/TestChecker.cs @@ -16,7 +16,7 @@ using Xunit; namespace ILLink.RoslynAnalyzer.Tests { - internal class TestChecker : CSharpSyntaxWalker + internal sealed class TestChecker : CSharpSyntaxWalker { private readonly CSharpSyntaxTree _tree; private readonly SemanticModel _semanticModel; diff --git a/test/ILLink.RoslynAnalyzer.Tests/XmlText.cs b/test/ILLink.RoslynAnalyzer.Tests/XmlText.cs index 93557e74b..61d82465c 100644 --- a/test/ILLink.RoslynAnalyzer.Tests/XmlText.cs +++ b/test/ILLink.RoslynAnalyzer.Tests/XmlText.cs @@ -8,7 +8,7 @@ using Microsoft.CodeAnalysis.Text; namespace ILLink.RoslynAnalyzer.Tests { - class XmlText : AdditionalText + sealed class XmlText : AdditionalText { public override string Path { get; } diff --git a/test/Mono.Linker.Tests/Tests/DocumentationSignatureParserTests.cs b/test/Mono.Linker.Tests/Tests/DocumentationSignatureParserTests.cs index 52766fd47..7b442116c 100644 --- a/test/Mono.Linker.Tests/Tests/DocumentationSignatureParserTests.cs +++ b/test/Mono.Linker.Tests/Tests/DocumentationSignatureParserTests.cs @@ -12,7 +12,7 @@ using NUnit.Framework; namespace Mono.Linker.Tests { - class TestResolver : ITryResolveMetadata + sealed class TestResolver : ITryResolveMetadata { public static TestResolver Instance => new TestResolver (); diff --git a/test/Mono.Linker.Tests/Tests/TypeNameResolverTests.cs b/test/Mono.Linker.Tests/Tests/TypeNameResolverTests.cs index 8bda61089..de3759d46 100644 --- a/test/Mono.Linker.Tests/Tests/TypeNameResolverTests.cs +++ b/test/Mono.Linker.Tests/Tests/TypeNameResolverTests.cs @@ -83,6 +83,6 @@ namespace Mono.Linker.Tests Assert.IsNull (TypeParser.ParseTypeName (", System")); } - class GenericType<T1, T2> { } + sealed class GenericType<T1, T2> { } } } |