From 92825b06521b16a5979e86c682b48dddf13ae74c Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Mon, 31 Jul 2017 11:58:47 -0700 Subject: [PATCH] Add more trivia placements to test --- .../VSTHRD103UseAsyncOptionAnalyzerTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers.Tests/VSTHRD103UseAsyncOptionAnalyzerTests.cs b/src/Microsoft.VisualStudio.Threading.Analyzers.Tests/VSTHRD103UseAsyncOptionAnalyzerTests.cs index 693b9b951..3ef5e2620 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers.Tests/VSTHRD103UseAsyncOptionAnalyzerTests.cs +++ b/src/Microsoft.VisualStudio.Threading.Analyzers.Tests/VSTHRD103UseAsyncOptionAnalyzerTests.cs @@ -940,7 +940,7 @@ async Task DoWorkAsync() Console.WriteLine(""Foo""); // Some comment - Foo(); // another comment + Foo(/*argcomment*/); // another comment } } "; @@ -958,7 +958,7 @@ async Task DoWorkAsync() Console.WriteLine(""Foo""); // Some comment - await FooAsync(); // another comment + await FooAsync(/*argcomment*/); // another comment } } "; @@ -984,7 +984,7 @@ async Task DoWorkAsync() Console.WriteLine(""Foo""); // Some comment - FooAsync().Wait(); // another comment + FooAsync(/*argcomment*/).Wait(); // another comment } } "; @@ -1002,11 +1002,11 @@ async Task DoWorkAsync() Console.WriteLine(""Foo""); // Some comment - await FooAsync(); // another comment + await FooAsync(/*argcomment*/); // another comment } } "; - this.expect.Locations = new[] { new DiagnosticResultLocation("Test0.cs", 15, 20, 15, 24) }; + this.expect.Locations = new[] { new DiagnosticResultLocation("Test0.cs", 15, 34, 15, 38) }; this.VerifyCSharpDiagnostic(test, this.expect); this.VerifyCSharpFix(test, withFix); }