diff options
author | dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> | 2022-07-28 14:49:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 14:49:34 +0300 |
commit | 65e21d78731ae5825b3921a870221fbc8fdeee67 (patch) | |
tree | 3225fa1f854c198c4b64920b71beece030230b1b /test/ILLink.RoslynAnalyzer.Tests/TestCaseCompilation.cs | |
parent | f09bacf09ef10b61cf9f19825f8782171a816dab (diff) |
[main] Update dependencies from dotnet/arcade (#2884)
[main] Update dependencies from dotnet/arcade
- Bump to 7.0 preview6 sdk
Fixes the dotnet-format issue.
- Use TryGetValue instead of ContainsKey for Dictionary
Fixes "error CA1854: Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup"
- Seal classes to fix CA1852
- Add 7.0 P6 runtime
- Upgrade SDK to nightly Preview 7 to get a fix for dotnet test bug
Diffstat (limited to 'test/ILLink.RoslynAnalyzer.Tests/TestCaseCompilation.cs')
-rw-r--r-- | test/ILLink.RoslynAnalyzer.Tests/TestCaseCompilation.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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); |