Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.AbstractTests.ConcreteClass1)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.AssertClassName();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit.
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.AbstractTests.ConcreteClass2)instance;
var context = global::TUnit.Core.TestContext.Current;
typedInstance.SecondTest();
await global::System.Threading.Tasks.Task.CompletedTask;
},
Expand Down Expand Up @@ -171,7 +170,6 @@ internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::T
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.AbstractTests.ConcreteClass2)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.AssertClassName();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down Expand Up @@ -269,7 +267,6 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit.
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.AbstractTests.ConcreteClass2)instance;
var context = global::TUnit.Core.TestContext.Current;
typedInstance.SecondTest();
await global::System.Threading.Tasks.Task.CompletedTask;
},
Expand Down Expand Up @@ -368,7 +365,6 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.AbstractTests.ConcreteClass1)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.AssertClassName();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ internal sealed class CleanupTests_Test1_TestSource_GUID : global::TUnit.Core.In
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.AfterTests.CleanupTests)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.Test1();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down Expand Up @@ -165,7 +164,6 @@ internal sealed class CleanupTests_Test2_TestSource_GUID : global::TUnit.Core.In
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.AfterTests.CleanupTests)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.Test2();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down
2 changes: 0 additions & 2 deletions TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ internal sealed class CleanupTests_Test1_TestSource_GUID : global::TUnit.Core.In
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.AfterTests.CleanupTests)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.Test1();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down Expand Up @@ -165,7 +164,6 @@ internal sealed class CleanupTests_Test2_TestSource_GUID : global::TUnit.Core.In
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.AfterTests.CleanupTests)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.Test2();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ internal sealed class ArgsAsArrayTests_Params_TestSource_GUID : global::TUnit.Co
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.ArgsAsArrayTests)instance;
var context = global::TUnit.Core.TestContext.Current;
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 0:
Expand Down Expand Up @@ -112,7 +110,6 @@ internal sealed class ArgsAsArrayTests_Params_TestSource_GUID : global::TUnit.Co
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
{
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 0:
Expand Down Expand Up @@ -241,8 +238,6 @@ internal sealed class ArgsAsArrayTests_NonParams_TestSource_GUID : global::TUnit
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.ArgsAsArrayTests)instance;
var context = global::TUnit.Core.TestContext.Current;
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 1:
Expand All @@ -255,7 +250,6 @@ internal sealed class ArgsAsArrayTests_NonParams_TestSource_GUID : global::TUnit
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
{
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 1:
Expand Down Expand Up @@ -366,8 +360,6 @@ internal sealed class ArgsAsArrayTests_ParamsEnumerable_TestSource_GUID : global
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.ArgsAsArrayTests)instance;
var context = global::TUnit.Core.TestContext.Current;
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 0:
Expand Down Expand Up @@ -398,7 +390,6 @@ internal sealed class ArgsAsArrayTests_ParamsEnumerable_TestSource_GUID : global
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
{
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 0:
Expand Down Expand Up @@ -527,8 +518,6 @@ internal sealed class ArgsAsArrayTests_Enumerable_TestSource_GUID : global::TUni
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.ArgsAsArrayTests)instance;
var context = global::TUnit.Core.TestContext.Current;
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 1:
Expand All @@ -541,7 +530,6 @@ internal sealed class ArgsAsArrayTests_Enumerable_TestSource_GUID : global::TUni
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
{
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 1:
Expand Down Expand Up @@ -659,8 +647,6 @@ internal sealed class ArgsAsArrayTests_Following_Non_Params_TestSource_GUID : gl
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.ArgsAsArrayTests)instance;
var context = global::TUnit.Core.TestContext.Current;
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 2:
Expand All @@ -673,7 +659,6 @@ internal sealed class ArgsAsArrayTests_Following_Non_Params_TestSource_GUID : gl
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
{
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 2:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ internal sealed class ArgumentWithImplicitConverterTests_Explicit_TestSource_GUI
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.ArgumentWithImplicitConverterTests)instance;
var context = global::TUnit.Core.TestContext.Current;
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 1:
Expand All @@ -99,7 +97,6 @@ internal sealed class ArgumentWithImplicitConverterTests_Explicit_TestSource_GUI
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
{
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 1:
Expand Down Expand Up @@ -215,8 +212,6 @@ internal sealed class ArgumentWithImplicitConverterTests_Implicit_TestSource_GUI
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.ArgumentWithImplicitConverterTests)instance;
var context = global::TUnit.Core.TestContext.Current;
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 1:
Expand All @@ -229,7 +224,6 @@ internal sealed class ArgumentWithImplicitConverterTests_Implicit_TestSource_GUI
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
{
// Invoke with only the arguments that were provided
switch (args.Length)
{
case 1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
var context = global::TUnit.Core.TestContext.Current;
typedInstance.SynchronousTest();
await global::System.Threading.Tasks.Task.CompletedTask;
},
Expand Down Expand Up @@ -167,7 +166,6 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.AsynchronousTest();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down Expand Up @@ -263,7 +261,6 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.ValueTaskAsynchronousTest();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
var context = global::TUnit.Core.TestContext.Current;
typedInstance.SynchronousTest();
await global::System.Threading.Tasks.Task.CompletedTask;
},
Expand Down Expand Up @@ -167,7 +166,6 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.AsynchronousTest();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down Expand Up @@ -263,7 +261,6 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.ValueTaskAsynchronousTest();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
var context = global::TUnit.Core.TestContext.Current;
typedInstance.SynchronousTest();
await global::System.Threading.Tasks.Task.CompletedTask;
},
Expand Down Expand Up @@ -167,7 +166,6 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.AsynchronousTest();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down Expand Up @@ -263,7 +261,6 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo
TestInvoker = async (instance, args) =>
{
var typedInstance = (global::TUnit.TestProject.BasicTests)instance;
var context = global::TUnit.Core.TestContext.Current;
await typedInstance.ValueTaskAsynchronousTest();
},
InvokeTypedTest = async (instance, args, cancellationToken) =>
Expand Down
Loading
Loading