Skip to content

Commit bda8c5a

Browse files
authored
Apply suggestions from code review
1 parent 2543742 commit bda8c5a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp7/MaintainabilityRules/SA1414CSharp7UnitTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static explicit operator TestClass({typeExpression} p1)
120120
}
121121

122122
[Fact]
123-
public Task ValidateTuplesFromInterfaceAsync()
123+
public async Task ValidateTuplesFromInterfaceAsync()
124124
{
125125
const string testCode = @"
126126
using System.Collections.Generic;
@@ -133,11 +133,11 @@ class StringTupleComparer : IEqualityComparer<(string, string)>
133133
public int GetHashCode((string, string) obj) => throw null;
134134
}
135135
}";
136-
return VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, default);
136+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
137137
}
138138

139139
[Fact]
140-
public Task ValidateTuplesFromExplicitInterfaceImplementationAsync()
140+
public async Task ValidateTuplesFromExplicitInterfaceImplementationAsync()
141141
{
142142
const string testCode = @"
143143
using System.Collections.Generic;
@@ -150,11 +150,11 @@ class StringTupleComparer : IEqualityComparer<(string, string)>
150150
int IEqualityComparer<(string, string)>.GetHashCode((string, string) obj) => throw null;
151151
}
152152
}";
153-
return VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, default);
153+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
154154
}
155155

156156
[Fact]
157-
public Task ValidateTuplesFromBaseClassAsync()
157+
public async Task ValidateTuplesFromBaseClassAsync()
158158
{
159159
const string testCode = @"
160160
namespace Test {
@@ -172,7 +172,7 @@ abstract class B
172172
public virtual ([|int|], [|int|]) Run(([|int|], [|int|]) y) => throw null;
173173
}
174174
}";
175-
return VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, default);
175+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
176176
}
177177
}
178178
}

0 commit comments

Comments
 (0)