Skip to content

Commit

Permalink
Remove explicit language version configuration in test cases for c# 1…
Browse files Browse the repository at this point in the history
…0, so that they will be run with the expected (later) language version in later test projects

DotNetAnalyzers#3493
  • Loading branch information
bjornhellander committed May 9, 2022
1 parent 7476a19 commit c211127
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ namespace StyleCop.Analyzers.Test.CSharp10.NamingRules
{
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp;
using StyleCop.Analyzers.Test.CSharp9.NamingRules;
using StyleCop.Analyzers.Test.Verifiers;
using Xunit;
Expand Down Expand Up @@ -43,7 +42,7 @@ public R(int a, int b)
}}
";

await new CSharpTest(LanguageVersion.CSharp10)
await new CSharpTest()
{
ReferenceAssemblies = GenericAnalyzerTest.ReferenceAssembliesNet60,
TestCode = testCode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ namespace StyleCop.Analyzers.Test.CSharp10.ReadabilityRules
{
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp;
using StyleCop.Analyzers.Test.CSharp9.ReadabilityRules;
using StyleCop.Analyzers.Test.Verifiers;
using Xunit;
Expand All @@ -30,7 +29,7 @@ public bool Method(Test arg)
}
}";

await new CSharpTest(LanguageVersion.CSharp10)
await new CSharpTest()
{
ReferenceAssemblies = GenericAnalyzerTest.ReferenceAssembliesNet60,
TestCode = testCode,
Expand Down

0 comments on commit c211127

Please sign in to comment.