Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell authored Jun 21, 2023
1 parent 17b8bd6 commit 929986b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ namespace StyleCop.Analyzers.Test.CSharp9.LayoutRules
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Testing;
using StyleCop.Analyzers.Test.CSharp8.LayoutRules;
using StyleCop.Analyzers.Test.Verifiers;
using Xunit;
using static StyleCop.Analyzers.Test.Verifiers.StyleCopCodeFixVerifier<
StyleCop.Analyzers.LayoutRules.SA1513ClosingBraceMustBeFollowedByBlankLine,
Expand Down Expand Up @@ -60,12 +59,11 @@ public int X
}
";

var test = new CSharpTest
await new CSharpTest
{
TestCode = testCode,
ReferenceAssemblies = GenericAnalyzerTest.ReferenceAssembliesNet50,
};
await test.RunAsync(CancellationToken.None).ConfigureAwait(false);
ReferenceAssemblies = ReferenceAssemblies.Net.Net50,
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ namespace StyleCop.Analyzers.Test.CSharp9.LayoutRules
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Testing;
using StyleCop.Analyzers.Test.CSharp8.LayoutRules;
using StyleCop.Analyzers.Test.Verifiers;
using Xunit;
using static StyleCop.Analyzers.Test.Verifiers.StyleCopCodeFixVerifier<
StyleCop.Analyzers.LayoutRules.SA1516ElementsMustBeSeparatedByBlankLine,
Expand Down Expand Up @@ -144,13 +143,12 @@ public int X
}
";

var test = new CSharpTest
await new CSharpTest
{
TestCode = testCode,
FixedCode = fixedCode,
ReferenceAssemblies = GenericAnalyzerTest.ReferenceAssembliesNet50,
};
await test.RunAsync(CancellationToken.None).ConfigureAwait(false);
ReferenceAssemblies = ReferenceAssemblies.Net.Net50,
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
}

protected virtual DiagnosticResult[] GetExpectedResultTestUsingAndGlobalStatementSpacingInTopLevelProgram()
Expand Down

0 comments on commit 929986b

Please sign in to comment.