Skip to content

Commit 68913ae

Browse files
Merge pull request #68 from bjornhellander/feature/upgrade-xunit
Upgrade xunit etc
2 parents 1d1d0bc + 5095e23 commit 68913ae

435 files changed

Lines changed: 3939 additions & 3939 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/DocumentationRules/SA1649CSharp10UnitTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public enum IgnoredEnum {{ }}
4545
";
4646

4747
var expectedDiagnostic = Diagnostic().WithLocation(0);
48-
await VerifyCSharpFixAsync("TestType2.cs", testCode, StyleCopSettings, expectedDiagnostic, "TestType.cs", fixedCode, CancellationToken.None).ConfigureAwait(false);
48+
await VerifyCSharpFixAsync("TestType2.cs", testCode, StyleCopSettings, expectedDiagnostic, "TestType.cs", fixedCode, CancellationToken.None).ConfigureAwait(true);
4949
}
5050
}
5151
}

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/LayoutRules/SA1516CSharp10UnitTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public async Task TestThatDiagnosticIIsReportedOnUsingsAndExternAliasOutsideFile
3838
namespace Foo;
3939
";
4040

41-
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(false);
41+
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(true);
4242
}
4343

4444
/// <summary>
@@ -62,7 +62,7 @@ public async Task TestThatDiagnosticIIsReportedOnSpacingWithUsingsInsideFileScop
6262
using a = System.Collections;
6363
";
6464

65-
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(false);
65+
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(true);
6666
}
6767

6868
/// <summary>
@@ -93,7 +93,7 @@ public enum Foobar
9393
}
9494
";
9595

96-
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(false);
96+
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(true);
9797
}
9898

9999
/// <summary>
@@ -131,7 +131,7 @@ public enum Foobar
131131
}
132132
";
133133

134-
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(false);
134+
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(true);
135135
}
136136

137137
/// <summary>
@@ -151,7 +151,7 @@ public async Task TestThatDiagnosticIIsReportedOnExternAliasInsideFileScopedName
151151
extern alias corlib;
152152
";
153153

154-
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(false);
154+
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(true);
155155
}
156156

157157
/// <summary>
@@ -178,7 +178,7 @@ public async Task TestThatDiagnosticIIsReportedOnExternAliasAndUsingsInsideFileS
178178
using a = System.Collections;
179179
";
180180

181-
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(false);
181+
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(true);
182182
}
183183

184184
/// <summary>
@@ -220,7 +220,7 @@ public enum Foobar
220220
}
221221
";
222222

223-
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(false);
223+
await VerifyCSharpFixAsync(testCode, fixedCode).ConfigureAwait(true);
224224
}
225225

226226
private static Task VerifyCSharpFixAsync(string testCode, string fixedCode)

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/MaintainabilityRules/SA1402ForClassCSharp10UnitTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ await this.VerifyCSharpFixAsync(
3939
("/0/Test0.cs", fixedCode1),
4040
("TestClass2.cs", fixedCode2),
4141
},
42-
CancellationToken.None).ConfigureAwait(false);
42+
CancellationToken.None).ConfigureAwait(true);
4343
}
4444
}
4545
}

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/NamingRules/SA1300CSharp10UnitTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public async Task TestUpperCaseFileScopedNamespaceAsync()
2121
{
2222
var testCode = @"namespace Test;";
2323

24-
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
24+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
2525
}
2626

2727
[Fact]
@@ -32,7 +32,7 @@ public async Task TestLowerCaseFileScopedNamespaceAsync()
3232
var fixedCode = @"namespace Test;";
3333

3434
DiagnosticResult expected = Diagnostic().WithArguments("test").WithLocation(0);
35-
await VerifyCSharpFixAsync(testCode, expected, fixedCode, CancellationToken.None).ConfigureAwait(false);
35+
await VerifyCSharpFixAsync(testCode, expected, fixedCode, CancellationToken.None).ConfigureAwait(true);
3636
}
3737

3838
[Fact]
@@ -54,7 +54,7 @@ public async Task TestAllowedLowerCaseFileScopedNamespaceIsNotReportedAsync()
5454
{
5555
TestCode = testCode,
5656
Settings = customTestSettings,
57-
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
57+
}.RunAsync(CancellationToken.None).ConfigureAwait(true);
5858
}
5959

6060
[Fact]
@@ -71,7 +71,7 @@ public async Task TestLowerCaseComplicatedFileScopedNamespaceAsync()
7171
Diagnostic().WithArguments("bar").WithLocation(2),
7272
};
7373

74-
await VerifyCSharpFixAsync(testCode, expected, fixedCode, CancellationToken.None).ConfigureAwait(false);
74+
await VerifyCSharpFixAsync(testCode, expected, fixedCode, CancellationToken.None).ConfigureAwait(true);
7575
}
7676

7777
[Fact]
@@ -93,7 +93,7 @@ public async Task TestAllowedLowerCaseComplicatedFileScopedNamespaceIsNotReporte
9393
{
9494
TestCode = testCode,
9595
Settings = customTestSettings,
96-
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
96+
}.RunAsync(CancellationToken.None).ConfigureAwait(true);
9797
}
9898
}
9999
}

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/NamingRules/SA1313CSharp10UnitTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public R(int a, int b)
4040
}}
4141
";
4242

43-
await VerifyCSharpFixAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, fixedCode, CancellationToken.None).ConfigureAwait(false);
43+
await VerifyCSharpFixAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, fixedCode, CancellationToken.None).ConfigureAwait(true);
4444
}
4545
}
4646
}

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/OrderingRules/SA1200CSharp10UnitTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace TestNamespace;
3636
Diagnostic(SA1200UsingDirectivesMustBePlacedCorrectly.DescriptorInside).WithLocation(1),
3737
};
3838

39-
await VerifyCSharpFixAsync(testCode, expectedResults, fixedTestCode, CancellationToken.None).ConfigureAwait(false);
39+
await VerifyCSharpFixAsync(testCode, expectedResults, fixedTestCode, CancellationToken.None).ConfigureAwait(true);
4040
}
4141

4242
[Theory]
@@ -48,7 +48,7 @@ public async Task TestOnlyGlobalUsingStatementInFileAsync(string leadingTrivia)
4848
{
4949
var testCode = $@"{leadingTrivia}global using System;";
5050

51-
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
51+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
5252
}
5353

5454
[Fact]
@@ -61,7 +61,7 @@ namespace TestNamespace
6161
{
6262
}";
6363

64-
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
64+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
6565
}
6666
}
6767
}

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/OrderingRules/SA1200OutsideNamespaceCSharp10UnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace TestNamespace;
3232
Diagnostic(SA1200UsingDirectivesMustBePlacedCorrectly.DescriptorOutside).WithLocation(1),
3333
};
3434

35-
await VerifyCSharpFixAsync(testCode, expectedResults, fixedTestCode, CancellationToken.None).ConfigureAwait(false);
35+
await VerifyCSharpFixAsync(testCode, expectedResults, fixedTestCode, CancellationToken.None).ConfigureAwait(true);
3636
}
3737

3838
[Theory]
@@ -44,7 +44,7 @@ public async Task TestOnlyGlobalUsingStatementInFileAsync(string leadingTrivia)
4444
{
4545
var testCode = $@"{leadingTrivia}global using System;";
4646

47-
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
47+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
4848
}
4949
}
5050
}

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/OrderingRules/SA1200PreserveCSharp10UnitTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public async Task TestValidUsingStatementsInFileScopedNamespaceAsync()
2020
using System.Threading;
2121
";
2222

23-
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
23+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
2424
}
2525

2626
/// <summary>
@@ -37,7 +37,7 @@ public async Task TestIgnoredUsingStatementsInCompilationUnitWithFileScopedNames
3737
namespace TestNamespace;
3838
";
3939

40-
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
40+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
4141
}
4242

4343
[Theory]
@@ -49,7 +49,7 @@ public async Task TestOnlyGlobalUsingStatementInFileAsync(string leadingTrivia)
4949
{
5050
var testCode = $@"{leadingTrivia}global using System;";
5151

52-
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
52+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
5353
}
5454
}
5555
}

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/OrderingRules/SA1201CSharp10UnitTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public struct FooStruct { }
2626
public class FooClass { }
2727
";
2828

29-
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
29+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
3030
}
3131

3232
[Fact]
@@ -47,7 +47,7 @@ public struct {|#1:FooStruct|} { }
4747
Diagnostic().WithLocation(1).WithArguments("struct", "class"),
4848
};
4949

50-
await VerifyCSharpDiagnosticAsync(testCode, expected, CancellationToken.None).ConfigureAwait(false);
50+
await VerifyCSharpDiagnosticAsync(testCode, expected, CancellationToken.None).ConfigureAwait(true);
5151
}
5252

5353
[Fact]
@@ -61,8 +61,8 @@ public record struct FooStruct { }
6161
public class FooClass { }
6262
";
6363

64-
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
65-
await VerifyCSharpDiagnosticAsync("namespace OuterNamespace { " + testCode + " }", DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
64+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
65+
await VerifyCSharpDiagnosticAsync("namespace OuterNamespace { " + testCode + " }", DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
6666
}
6767

6868
[Fact]
@@ -83,8 +83,8 @@ public record struct {|#1:FooStruct|} { }
8383
Diagnostic().WithLocation(1).WithArguments("record struct", "class"),
8484
};
8585

86-
await VerifyCSharpDiagnosticAsync(testCode, expected, CancellationToken.None).ConfigureAwait(false);
87-
await VerifyCSharpDiagnosticAsync("namespace OuterNamespace { " + testCode + " }", expected, CancellationToken.None).ConfigureAwait(false);
86+
await VerifyCSharpDiagnosticAsync(testCode, expected, CancellationToken.None).ConfigureAwait(true);
87+
await VerifyCSharpDiagnosticAsync("namespace OuterNamespace { " + testCode + " }", expected, CancellationToken.None).ConfigureAwait(true);
8888
}
8989
}
9090
}

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/OrderingRules/SA1202CSharp10UnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class TestClass2 { }
4343
class TestClass1 { }
4444
";
4545

46-
await VerifyCSharpFixAsync(testCode, expected, fixedCode, CancellationToken.None).ConfigureAwait(false);
46+
await VerifyCSharpFixAsync(testCode, expected, fixedCode, CancellationToken.None).ConfigureAwait(true);
4747
}
4848

4949
[Fact]
@@ -58,7 +58,7 @@ internal class Class4 { }
5858
class Class5 { }
5959
";
6060

61-
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
61+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(true);
6262
}
6363
}
6464
}

0 commit comments

Comments
 (0)