Skip to content

Commit 02e60f4

Browse files
authored
Merge branch 'main' into copilot/fix-2906
2 parents 12f1401 + 4db057c commit 02e60f4

84 files changed

Lines changed: 78 additions & 565 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.

TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T
7070
TestInvoker = async (instance, args) =>
7171
{
7272
var typedInstance = (global::TUnit.TestProject.AbstractTests.ConcreteClass1)instance;
73-
var context = global::TUnit.Core.TestContext.Current;
7473
await typedInstance.AssertClassName();
7574
},
7675
InvokeTypedTest = async (instance, args, cancellationToken) =>

TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit.
7171
TestInvoker = async (instance, args) =>
7272
{
7373
var typedInstance = (global::TUnit.TestProject.AbstractTests.ConcreteClass2)instance;
74-
var context = global::TUnit.Core.TestContext.Current;
7574
typedInstance.SecondTest();
7675
await global::System.Threading.Tasks.Task.CompletedTask;
7776
},
@@ -171,7 +170,6 @@ internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::T
171170
TestInvoker = async (instance, args) =>
172171
{
173172
var typedInstance = (global::TUnit.TestProject.AbstractTests.ConcreteClass2)instance;
174-
var context = global::TUnit.Core.TestContext.Current;
175173
await typedInstance.AssertClassName();
176174
},
177175
InvokeTypedTest = async (instance, args, cancellationToken) =>
@@ -269,7 +267,6 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit.
269267
TestInvoker = async (instance, args) =>
270268
{
271269
var typedInstance = (global::TUnit.TestProject.AbstractTests.ConcreteClass2)instance;
272-
var context = global::TUnit.Core.TestContext.Current;
273270
typedInstance.SecondTest();
274271
await global::System.Threading.Tasks.Task.CompletedTask;
275272
},
@@ -368,7 +365,6 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T
368365
TestInvoker = async (instance, args) =>
369366
{
370367
var typedInstance = (global::TUnit.TestProject.AbstractTests.ConcreteClass1)instance;
371-
var context = global::TUnit.Core.TestContext.Current;
372368
await typedInstance.AssertClassName();
373369
},
374370
InvokeTypedTest = async (instance, args, cancellationToken) =>

TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ internal sealed class CleanupTests_Test1_TestSource_GUID : global::TUnit.Core.In
6969
TestInvoker = async (instance, args) =>
7070
{
7171
var typedInstance = (global::TUnit.TestProject.AfterTests.CleanupTests)instance;
72-
var context = global::TUnit.Core.TestContext.Current;
7372
await typedInstance.Test1();
7473
},
7574
InvokeTypedTest = async (instance, args, cancellationToken) =>
@@ -165,7 +164,6 @@ internal sealed class CleanupTests_Test2_TestSource_GUID : global::TUnit.Core.In
165164
TestInvoker = async (instance, args) =>
166165
{
167166
var typedInstance = (global::TUnit.TestProject.AfterTests.CleanupTests)instance;
168-
var context = global::TUnit.Core.TestContext.Current;
169167
await typedInstance.Test2();
170168
},
171169
InvokeTypedTest = async (instance, args, cancellationToken) =>

TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ internal sealed class CleanupTests_Test1_TestSource_GUID : global::TUnit.Core.In
6969
TestInvoker = async (instance, args) =>
7070
{
7171
var typedInstance = (global::TUnit.TestProject.AfterTests.CleanupTests)instance;
72-
var context = global::TUnit.Core.TestContext.Current;
7372
await typedInstance.Test1();
7473
},
7574
InvokeTypedTest = async (instance, args, cancellationToken) =>
@@ -165,7 +164,6 @@ internal sealed class CleanupTests_Test2_TestSource_GUID : global::TUnit.Core.In
165164
TestInvoker = async (instance, args) =>
166165
{
167166
var typedInstance = (global::TUnit.TestProject.AfterTests.CleanupTests)instance;
168-
var context = global::TUnit.Core.TestContext.Current;
169167
await typedInstance.Test2();
170168
},
171169
InvokeTypedTest = async (instance, args, cancellationToken) =>

TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ internal sealed class ArgsAsArrayTests_Params_TestSource_GUID : global::TUnit.Co
8080
TestInvoker = async (instance, args) =>
8181
{
8282
var typedInstance = (global::TUnit.TestProject.ArgsAsArrayTests)instance;
83-
var context = global::TUnit.Core.TestContext.Current;
84-
// Invoke with only the arguments that were provided
8583
switch (args.Length)
8684
{
8785
case 0:
@@ -112,7 +110,6 @@ internal sealed class ArgsAsArrayTests_Params_TestSource_GUID : global::TUnit.Co
112110
},
113111
InvokeTypedTest = async (instance, args, cancellationToken) =>
114112
{
115-
// Invoke with only the arguments that were provided
116113
switch (args.Length)
117114
{
118115
case 0:
@@ -241,8 +238,6 @@ internal sealed class ArgsAsArrayTests_NonParams_TestSource_GUID : global::TUnit
241238
TestInvoker = async (instance, args) =>
242239
{
243240
var typedInstance = (global::TUnit.TestProject.ArgsAsArrayTests)instance;
244-
var context = global::TUnit.Core.TestContext.Current;
245-
// Invoke with only the arguments that were provided
246241
switch (args.Length)
247242
{
248243
case 1:
@@ -255,7 +250,6 @@ internal sealed class ArgsAsArrayTests_NonParams_TestSource_GUID : global::TUnit
255250
},
256251
InvokeTypedTest = async (instance, args, cancellationToken) =>
257252
{
258-
// Invoke with only the arguments that were provided
259253
switch (args.Length)
260254
{
261255
case 1:
@@ -366,8 +360,6 @@ internal sealed class ArgsAsArrayTests_ParamsEnumerable_TestSource_GUID : global
366360
TestInvoker = async (instance, args) =>
367361
{
368362
var typedInstance = (global::TUnit.TestProject.ArgsAsArrayTests)instance;
369-
var context = global::TUnit.Core.TestContext.Current;
370-
// Invoke with only the arguments that were provided
371363
switch (args.Length)
372364
{
373365
case 0:
@@ -398,7 +390,6 @@ internal sealed class ArgsAsArrayTests_ParamsEnumerable_TestSource_GUID : global
398390
},
399391
InvokeTypedTest = async (instance, args, cancellationToken) =>
400392
{
401-
// Invoke with only the arguments that were provided
402393
switch (args.Length)
403394
{
404395
case 0:
@@ -527,8 +518,6 @@ internal sealed class ArgsAsArrayTests_Enumerable_TestSource_GUID : global::TUni
527518
TestInvoker = async (instance, args) =>
528519
{
529520
var typedInstance = (global::TUnit.TestProject.ArgsAsArrayTests)instance;
530-
var context = global::TUnit.Core.TestContext.Current;
531-
// Invoke with only the arguments that were provided
532521
switch (args.Length)
533522
{
534523
case 1:
@@ -541,7 +530,6 @@ internal sealed class ArgsAsArrayTests_Enumerable_TestSource_GUID : global::TUni
541530
},
542531
InvokeTypedTest = async (instance, args, cancellationToken) =>
543532
{
544-
// Invoke with only the arguments that were provided
545533
switch (args.Length)
546534
{
547535
case 1:
@@ -659,8 +647,6 @@ internal sealed class ArgsAsArrayTests_Following_Non_Params_TestSource_GUID : gl
659647
TestInvoker = async (instance, args) =>
660648
{
661649
var typedInstance = (global::TUnit.TestProject.ArgsAsArrayTests)instance;
662-
var context = global::TUnit.Core.TestContext.Current;
663-
// Invoke with only the arguments that were provided
664650
switch (args.Length)
665651
{
666652
case 2:
@@ -673,7 +659,6 @@ internal sealed class ArgsAsArrayTests_Following_Non_Params_TestSource_GUID : gl
673659
},
674660
InvokeTypedTest = async (instance, args, cancellationToken) =>
675661
{
676-
// Invoke with only the arguments that were provided
677662
switch (args.Length)
678663
{
679664
case 2:

TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ internal sealed class ArgumentWithImplicitConverterTests_Explicit_TestSource_GUI
8585
TestInvoker = async (instance, args) =>
8686
{
8787
var typedInstance = (global::TUnit.TestProject.ArgumentWithImplicitConverterTests)instance;
88-
var context = global::TUnit.Core.TestContext.Current;
89-
// Invoke with only the arguments that were provided
9088
switch (args.Length)
9189
{
9290
case 1:
@@ -99,7 +97,6 @@ internal sealed class ArgumentWithImplicitConverterTests_Explicit_TestSource_GUI
9997
},
10098
InvokeTypedTest = async (instance, args, cancellationToken) =>
10199
{
102-
// Invoke with only the arguments that were provided
103100
switch (args.Length)
104101
{
105102
case 1:
@@ -215,8 +212,6 @@ internal sealed class ArgumentWithImplicitConverterTests_Implicit_TestSource_GUI
215212
TestInvoker = async (instance, args) =>
216213
{
217214
var typedInstance = (global::TUnit.TestProject.ArgumentWithImplicitConverterTests)instance;
218-
var context = global::TUnit.Core.TestContext.Current;
219-
// Invoke with only the arguments that were provided
220215
switch (args.Length)
221216
{
222217
case 1:
@@ -229,7 +224,6 @@ internal sealed class ArgumentWithImplicitConverterTests_Implicit_TestSource_GUI
229224
},
230225
InvokeTypedTest = async (instance, args, cancellationToken) =>
231226
{
232-
// Invoke with only the arguments that were provided
233227
switch (args.Length)
234228
{
235229
case 1:

TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet8_0.verified.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit
6969
TestInvoker = async (instance, args) =>
7070
{
7171
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
72-
var context = global::TUnit.Core.TestContext.Current;
7372
typedInstance.SynchronousTest();
7473
await global::System.Threading.Tasks.Task.CompletedTask;
7574
},
@@ -167,7 +166,6 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni
167166
TestInvoker = async (instance, args) =>
168167
{
169168
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
170-
var context = global::TUnit.Core.TestContext.Current;
171169
await typedInstance.AsynchronousTest();
172170
},
173171
InvokeTypedTest = async (instance, args, cancellationToken) =>
@@ -263,7 +261,6 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo
263261
TestInvoker = async (instance, args) =>
264262
{
265263
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
266-
var context = global::TUnit.Core.TestContext.Current;
267264
await typedInstance.ValueTaskAsynchronousTest();
268265
},
269266
InvokeTypedTest = async (instance, args, cancellationToken) =>

TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet9_0.verified.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit
6969
TestInvoker = async (instance, args) =>
7070
{
7171
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
72-
var context = global::TUnit.Core.TestContext.Current;
7372
typedInstance.SynchronousTest();
7473
await global::System.Threading.Tasks.Task.CompletedTask;
7574
},
@@ -167,7 +166,6 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni
167166
TestInvoker = async (instance, args) =>
168167
{
169168
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
170-
var context = global::TUnit.Core.TestContext.Current;
171169
await typedInstance.AsynchronousTest();
172170
},
173171
InvokeTypedTest = async (instance, args, cancellationToken) =>
@@ -263,7 +261,6 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo
263261
TestInvoker = async (instance, args) =>
264262
{
265263
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
266-
var context = global::TUnit.Core.TestContext.Current;
267264
await typedInstance.ValueTaskAsynchronousTest();
268265
},
269266
InvokeTypedTest = async (instance, args, cancellationToken) =>

TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.Net4_7.verified.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit
6969
TestInvoker = async (instance, args) =>
7070
{
7171
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
72-
var context = global::TUnit.Core.TestContext.Current;
7372
typedInstance.SynchronousTest();
7473
await global::System.Threading.Tasks.Task.CompletedTask;
7574
},
@@ -167,7 +166,6 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni
167166
TestInvoker = async (instance, args) =>
168167
{
169168
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
170-
var context = global::TUnit.Core.TestContext.Current;
171169
await typedInstance.AsynchronousTest();
172170
},
173171
InvokeTypedTest = async (instance, args, cancellationToken) =>
@@ -263,7 +261,6 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo
263261
TestInvoker = async (instance, args) =>
264262
{
265263
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
266-
var context = global::TUnit.Core.TestContext.Current;
267264
await typedInstance.ValueTaskAsynchronousTest();
268265
},
269266
InvokeTypedTest = async (instance, args, cancellationToken) =>

0 commit comments

Comments
 (0)