diff --git a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt index a020c085a6..18891acf11 100644 --- a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Inherited_ConcreteClass1 : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class Inherited_ConcreteClass1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new Inherited_ConcreteClass1()); + global::TUnit.Core.SourceRegistrar.Register(new Inherited_ConcreteClass1()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -71,7 +71,7 @@ file partial class Inherited_ConcreteClass1 : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.AbstractTests.ConcreteClass1.AssertClassName:0", TestClass = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), diff --git a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt index 1e012bce0b..335e7ea1f3 100644 --- a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConcreteClass2 : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConcreteClass2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConcreteClass2()); + global::TUnit.Core.SourceRegistrar.Register(new ConcreteClass2()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -74,7 +74,7 @@ file partial class ConcreteClass2 : TUnit.Core.Interfaces.SourceGenerator.ITestS } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.AbstractTests.ConcreteClass2.SecondTest:0", TestClass = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), @@ -102,12 +102,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Inherited_ConcreteClass2 : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class Inherited_ConcreteClass2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new Inherited_ConcreteClass2()); + global::TUnit.Core.SourceRegistrar.Register(new Inherited_ConcreteClass2()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -166,7 +166,7 @@ file partial class Inherited_ConcreteClass2 : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.AbstractTests.ConcreteClass2.AssertClassName:0", TestClass = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), @@ -194,12 +194,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Inherited_ConcreteClass1 : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class Inherited_ConcreteClass1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new Inherited_ConcreteClass1()); + global::TUnit.Core.SourceRegistrar.Register(new Inherited_ConcreteClass1()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -255,7 +255,7 @@ file partial class Inherited_ConcreteClass1 : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.AbstractTests.ConcreteClass1.AssertClassName:0", TestClass = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), diff --git a/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt index 178aec229b..b90d58fcf8 100644 --- a/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt @@ -12,7 +12,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base1 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -20,25 +20,25 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base1(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -75,7 +75,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -83,25 +83,25 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base1(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -136,7 +136,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base2 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -144,25 +144,25 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base2(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -199,7 +199,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -207,25 +207,25 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base2(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -260,7 +260,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base3 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -268,25 +268,25 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base3(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -323,7 +323,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base3 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -331,25 +331,25 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base3(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -384,7 +384,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -392,25 +392,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IC var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -447,7 +447,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -455,25 +455,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IC var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -510,7 +510,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -518,25 +518,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IC var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -573,7 +573,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -581,25 +581,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IC var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -636,7 +636,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -644,25 +644,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IT var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -697,7 +697,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -705,25 +705,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IT var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -761,7 +761,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -769,25 +769,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IT var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -822,7 +822,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -830,25 +830,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IT var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ diff --git a/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt index 178aec229b..b90d58fcf8 100644 --- a/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt @@ -12,7 +12,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base1 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -20,25 +20,25 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base1(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -75,7 +75,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -83,25 +83,25 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base1(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -136,7 +136,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base2 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -144,25 +144,25 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base2(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -199,7 +199,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -207,25 +207,25 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base2(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -260,7 +260,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base3 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -268,25 +268,25 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base3(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -323,7 +323,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base3 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -331,25 +331,25 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base3(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -384,7 +384,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -392,25 +392,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IC var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -447,7 +447,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -455,25 +455,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IC var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -510,7 +510,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -518,25 +518,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IC var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -573,7 +573,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -581,25 +581,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IC var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -636,7 +636,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -644,25 +644,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IT var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -697,7 +697,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -705,25 +705,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IT var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -761,7 +761,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -769,25 +769,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IT var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -822,7 +822,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_CleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -830,25 +830,25 @@ file partial class Hooks_CleanupTests : TUnit.Core.Interfaces.SourceGenerator.IT var instance = new Hooks_CleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ diff --git a/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt index b6b41cb61d..802943f8db 100644 --- a/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ArgsAsArrayTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ArgsAsArrayTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ArgsAsArrayTests()); + global::TUnit.Core.SourceRegistrar.Register(new ArgsAsArrayTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -73,7 +73,7 @@ file partial class ArgsAsArrayTests : TUnit.Core.Interfaces.SourceGenerator.ITes } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ArgsAsArrayTests.Params(System.String[]):0", TestClass = typeof(global::TUnit.TestProject.ArgsAsArrayTests), @@ -101,12 +101,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ArgsAsArrayTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ArgsAsArrayTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ArgsAsArrayTests()); + global::TUnit.Core.SourceRegistrar.Register(new ArgsAsArrayTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -164,7 +164,7 @@ file partial class ArgsAsArrayTests : TUnit.Core.Interfaces.SourceGenerator.ITes } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ArgsAsArrayTests.NonParams(System.String[]):0", TestClass = typeof(global::TUnit.TestProject.ArgsAsArrayTests), @@ -192,12 +192,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ArgsAsArrayTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ArgsAsArrayTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ArgsAsArrayTests()); + global::TUnit.Core.SourceRegistrar.Register(new ArgsAsArrayTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -255,7 +255,7 @@ file partial class ArgsAsArrayTests : TUnit.Core.Interfaces.SourceGenerator.ITes } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ArgsAsArrayTests.ParamsEnumerable(System.Collections.Generic.IEnumerable):0", TestClass = typeof(global::TUnit.TestProject.ArgsAsArrayTests), @@ -283,12 +283,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ArgsAsArrayTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ArgsAsArrayTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ArgsAsArrayTests()); + global::TUnit.Core.SourceRegistrar.Register(new ArgsAsArrayTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -346,7 +346,7 @@ file partial class ArgsAsArrayTests : TUnit.Core.Interfaces.SourceGenerator.ITes } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ArgsAsArrayTests.Enumerable(System.Collections.Generic.IEnumerable):0", TestClass = typeof(global::TUnit.TestProject.ArgsAsArrayTests), diff --git a/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt index 9999dfbc6d..04540f89f3 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt @@ -12,7 +12,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase1 : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblyBase1 : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -20,25 +20,25 @@ file partial class Hooks_AssemblyBase1 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase1(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -75,7 +75,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase1 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblyBase1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -83,25 +83,25 @@ file partial class Hooks_AssemblyBase1 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase1(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -136,7 +136,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase2 : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblyBase2 : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -144,25 +144,25 @@ file partial class Hooks_AssemblyBase2 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase2(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -199,7 +199,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase2 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblyBase2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -207,25 +207,25 @@ file partial class Hooks_AssemblyBase2 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase2(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -260,7 +260,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase3 : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblyBase3 : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -268,25 +268,25 @@ file partial class Hooks_AssemblyBase3 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase3(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -323,7 +323,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase3 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblyBase3 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -331,25 +331,25 @@ file partial class Hooks_AssemblyBase3 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase3(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -384,7 +384,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblyCleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -392,25 +392,25 @@ file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGene var instance = new Hooks_AssemblyCleanupTests(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -447,7 +447,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblyCleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -455,25 +455,25 @@ file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGene var instance = new Hooks_AssemblyCleanupTests(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -510,7 +510,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblyCleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -518,25 +518,25 @@ file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGene var instance = new Hooks_AssemblyCleanupTests(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -573,7 +573,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblyCleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -581,25 +581,25 @@ file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGene var instance = new Hooks_AssemblyCleanupTests(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -636,7 +636,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblyCleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -644,25 +644,25 @@ file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGene var instance = new Hooks_AssemblyCleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -697,7 +697,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblyCleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -705,25 +705,25 @@ file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGene var instance = new Hooks_AssemblyCleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -761,7 +761,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblyCleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -769,25 +769,25 @@ file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGene var instance = new Hooks_AssemblyCleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -822,7 +822,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblyCleanupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -830,25 +830,25 @@ file partial class Hooks_AssemblyCleanupTests : TUnit.Core.Interfaces.SourceGene var instance = new Hooks_AssemblyCleanupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ diff --git a/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt index 3110c85b91..a1dd4e9730 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt @@ -12,7 +12,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase1 : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblyBase1 : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -20,19 +20,19 @@ file partial class Hooks_AssemblyBase1 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase1(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ @@ -53,7 +53,7 @@ file partial class Hooks_AssemblyBase1 : TUnit.Core.Interfaces.SourceGenerator.I }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -75,7 +75,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase1 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblyBase1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -83,19 +83,19 @@ file partial class Hooks_AssemblyBase1 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase1(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -114,7 +114,7 @@ file partial class Hooks_AssemblyBase1 : TUnit.Core.Interfaces.SourceGenerator.I }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -136,7 +136,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase2 : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblyBase2 : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -144,19 +144,19 @@ file partial class Hooks_AssemblyBase2 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase2(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ @@ -177,7 +177,7 @@ file partial class Hooks_AssemblyBase2 : TUnit.Core.Interfaces.SourceGenerator.I }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -199,7 +199,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase2 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblyBase2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -207,19 +207,19 @@ file partial class Hooks_AssemblyBase2 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase2(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -238,7 +238,7 @@ file partial class Hooks_AssemblyBase2 : TUnit.Core.Interfaces.SourceGenerator.I }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -260,7 +260,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase3 : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblyBase3 : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -268,19 +268,19 @@ file partial class Hooks_AssemblyBase3 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase3(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ @@ -301,7 +301,7 @@ file partial class Hooks_AssemblyBase3 : TUnit.Core.Interfaces.SourceGenerator.I }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -323,7 +323,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblyBase3 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblyBase3 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -331,19 +331,19 @@ file partial class Hooks_AssemblyBase3 : TUnit.Core.Interfaces.SourceGenerator.I var instance = new Hooks_AssemblyBase3(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -362,7 +362,7 @@ file partial class Hooks_AssemblyBase3 : TUnit.Core.Interfaces.SourceGenerator.I }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -384,7 +384,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblySetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -392,19 +392,19 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_AssemblySetupTests(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ @@ -425,7 +425,7 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -447,7 +447,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblySetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -455,19 +455,19 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_AssemblySetupTests(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ @@ -488,7 +488,7 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -510,7 +510,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblySetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -518,19 +518,19 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_AssemblySetupTests(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ @@ -551,7 +551,7 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -573,7 +573,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource +file partial class Hooks_AssemblySetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -581,19 +581,19 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_AssemblySetupTests(); SourceRegistrar.RegisterAssemblyHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryAssemblyHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeAssemblyHooks(string sessionId) { return [ @@ -614,7 +614,7 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterAssemblyHooks(string sessionId) { return [ @@ -636,7 +636,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblySetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -644,19 +644,19 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_AssemblySetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -675,7 +675,7 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -697,7 +697,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblySetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -705,19 +705,19 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_AssemblySetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -739,7 +739,7 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -761,7 +761,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblySetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -769,19 +769,19 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_AssemblySetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -800,7 +800,7 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -822,7 +822,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_AssemblySetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -830,19 +830,19 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_AssemblySetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -864,7 +864,7 @@ file partial class Hooks_AssemblySetupTests : TUnit.Core.Interfaces.SourceGenera }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ diff --git a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.verified.txt index 0e13e51696..75e93791df 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class BasicTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class BasicTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new BasicTests()); + global::TUnit.Core.SourceRegistrar.Register(new BasicTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -68,7 +68,7 @@ file partial class BasicTests : TUnit.Core.Interfaces.SourceGenerator.ITestSourc } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.BasicTests.SynchronousTest:0", TestClass = typeof(global::TUnit.TestProject.BasicTests), @@ -96,12 +96,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class BasicTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class BasicTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new BasicTests()); + global::TUnit.Core.SourceRegistrar.Register(new BasicTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -154,7 +154,7 @@ file partial class BasicTests : TUnit.Core.Interfaces.SourceGenerator.ITestSourc } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.BasicTests.AsynchronousTest:0", TestClass = typeof(global::TUnit.TestProject.BasicTests), @@ -182,12 +182,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class BasicTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class BasicTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new BasicTests()); + global::TUnit.Core.SourceRegistrar.Register(new BasicTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -240,7 +240,7 @@ file partial class BasicTests : TUnit.Core.Interfaces.SourceGenerator.ITestSourc } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.BasicTests.ValueTaskAsynchronousTest:0", TestClass = typeof(global::TUnit.TestProject.BasicTests), diff --git a/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt index 36dcca6013..37b3c958e6 100644 --- a/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt @@ -12,7 +12,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base1 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -20,19 +20,19 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base1(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -53,7 +53,7 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -75,7 +75,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -83,19 +83,19 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base1(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -114,7 +114,7 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.ITestHook }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -136,7 +136,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base2 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -144,19 +144,19 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base2(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -177,7 +177,7 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -199,7 +199,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -207,19 +207,19 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base2(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -238,7 +238,7 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.ITestHook }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -260,7 +260,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base3 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -268,19 +268,19 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base3(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -301,7 +301,7 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -323,7 +323,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base3 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -331,19 +331,19 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base3(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -362,7 +362,7 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.ITestHook }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -384,7 +384,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -392,19 +392,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -425,7 +425,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -447,7 +447,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -455,19 +455,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -488,7 +488,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -510,7 +510,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -518,19 +518,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -551,7 +551,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -573,7 +573,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -581,19 +581,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -614,7 +614,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -636,7 +636,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -644,19 +644,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -675,7 +675,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -697,7 +697,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -705,19 +705,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -739,7 +739,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -761,7 +761,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -769,19 +769,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -800,7 +800,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -822,7 +822,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -830,19 +830,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -864,7 +864,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ diff --git a/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt index 36dcca6013..37b3c958e6 100644 --- a/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt @@ -12,7 +12,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base1 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -20,19 +20,19 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base1(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -53,7 +53,7 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -75,7 +75,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -83,19 +83,19 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base1(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -114,7 +114,7 @@ file partial class Hooks_Base1 : TUnit.Core.Interfaces.SourceGenerator.ITestHook }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -136,7 +136,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base2 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -144,19 +144,19 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base2(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -177,7 +177,7 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -199,7 +199,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -207,19 +207,19 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base2(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -238,7 +238,7 @@ file partial class Hooks_Base2 : TUnit.Core.Interfaces.SourceGenerator.ITestHook }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -260,7 +260,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_Base3 : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -268,19 +268,19 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo var instance = new Hooks_Base3(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -301,7 +301,7 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.IClassHoo }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -323,7 +323,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_Base3 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -331,19 +331,19 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.ITestHook var instance = new Hooks_Base3(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -362,7 +362,7 @@ file partial class Hooks_Base3 : TUnit.Core.Interfaces.SourceGenerator.ITestHook }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -384,7 +384,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -392,19 +392,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -425,7 +425,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -447,7 +447,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -455,19 +455,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -488,7 +488,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -510,7 +510,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -518,19 +518,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -551,7 +551,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -573,7 +573,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.IClassHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -581,19 +581,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterClassHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryClassHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeClassHooks(string sessionId) { return [ @@ -614,7 +614,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ICla }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterClassHooks(string sessionId) { return [ @@ -636,7 +636,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -644,19 +644,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -675,7 +675,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -697,7 +697,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -705,19 +705,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -739,7 +739,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -761,7 +761,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -769,19 +769,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -800,7 +800,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -822,7 +822,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_SetupTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -830,19 +830,19 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes var instance = new Hooks_SetupTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -864,7 +864,7 @@ file partial class Hooks_SetupTests : TUnit.Core.Interfaces.SourceGenerator.ITes }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ diff --git a/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt index b58d86e94f..a55f12331d 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassAndMethodArgumentsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassAndMethodArgumentsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassAndMethodArgumentsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -80,7 +80,7 @@ file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGe } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{classDataIndex}:CL-ARGS0:TUnit.TestProject.ClassAndMethodArgumentsTests(System.String).Simple:0", TestClass = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), @@ -149,7 +149,7 @@ file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGe } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{classDataIndex}:CL-ARGS1:TUnit.TestProject.ClassAndMethodArgumentsTests(System.String).Simple:0", TestClass = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), @@ -177,12 +177,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassAndMethodArgumentsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassAndMethodArgumentsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassAndMethodArgumentsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -257,7 +257,7 @@ file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGe } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{classDataIndex}:CL-ARGS0:global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ClassAndMethodArgumentsTests(System.String).WithMethodLevel(System.String):0", TestClass = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), @@ -334,7 +334,7 @@ file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGe } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{classDataIndex}:CL-ARGS1:global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ClassAndMethodArgumentsTests(System.String).WithMethodLevel(System.String):0", TestClass = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), @@ -411,7 +411,7 @@ file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGe } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{classDataIndex}:CL-ARGS0:global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.ClassAndMethodArgumentsTests(System.String).WithMethodLevel(System.String):0", TestClass = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), @@ -488,7 +488,7 @@ file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGe } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{classDataIndex}:CL-ARGS1:global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.ClassAndMethodArgumentsTests(System.String).WithMethodLevel(System.String):0", TestClass = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), @@ -516,12 +516,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassAndMethodArgumentsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassAndMethodArgumentsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassAndMethodArgumentsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -596,7 +596,7 @@ file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGe } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{classDataIndex}:CL-ARGS0:global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ClassAndMethodArgumentsTests(System.String).IgnoreParameters(System.String):0", TestClass = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), @@ -673,7 +673,7 @@ file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGe } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{classDataIndex}:CL-ARGS1:global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ClassAndMethodArgumentsTests(System.String).IgnoreParameters(System.String):0", TestClass = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), @@ -750,7 +750,7 @@ file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGe } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{classDataIndex}:CL-ARGS0:global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.ClassAndMethodArgumentsTests(System.String).IgnoreParameters(System.String):0", TestClass = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), @@ -827,7 +827,7 @@ file partial class ClassAndMethodArgumentsTests : TUnit.Core.Interfaces.SourceGe } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{classDataIndex}:CL-ARGS1:global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.ClassAndMethodArgumentsTests(System.String).IgnoreParameters(System.String):0", TestClass = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), diff --git a/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt index 82ecb6fe7a..4e04bddd77 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassConstructorTest : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassConstructorTest : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassConstructorTest()); + global::TUnit.Core.SourceRegistrar.Register(new ClassConstructorTest()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -69,7 +69,7 @@ file partial class ClassConstructorTest : TUnit.Core.Interfaces.SourceGenerator. } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassConstructorAttribute:{classDataIndex}:CL-CCA0:TUnit.TestProject.ClassConstructorTest(TUnit.TestProject.DummyReferenceTypeClass).Test:0", TestClass = typeof(global::TUnit.TestProject.ClassConstructorTest), diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt index 736defd85d..81370f76e9 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -92,7 +92,7 @@ file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGene } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests.DataSource_Class(TUnit.TestProject.Dummy.SomeAsyncDisposableClass):0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), @@ -120,12 +120,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -202,7 +202,7 @@ file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGene } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests.DataSource_Class_Generic(TUnit.TestProject.Dummy.SomeAsyncDisposableClass):0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), @@ -230,12 +230,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -312,7 +312,7 @@ file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGene } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests.IsInitialized_With_1_ClassDataSource(TUnit.TestProject.InitializableClass):0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), @@ -340,12 +340,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -425,7 +425,7 @@ file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGene } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests.IsInitialized_With_2_ClassDataSources(TUnit.TestProject.InitializableClass,TUnit.TestProject.InitializableClass):0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), @@ -453,12 +453,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -539,7 +539,7 @@ file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGene } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests.IsInitialized_With_3_ClassDataSources(TUnit.TestProject.InitializableClass,TUnit.TestProject.InitializableClass,TUnit.TestProject.InitializableClass):0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), @@ -567,12 +567,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -654,7 +654,7 @@ file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGene } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests.IsInitialized_With_4_ClassDataSources(TUnit.TestProject.InitializableClass,TUnit.TestProject.InitializableClass,TUnit.TestProject.InitializableClass,TUnit.TestProject.InitializableClass):0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), @@ -682,12 +682,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -770,7 +770,7 @@ file partial class ClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGene } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests.IsInitialized_With_5_ClassDataSources(TUnit.TestProject.InitializableClass,TUnit.TestProject.InitializableClass,TUnit.TestProject.InitializableClass,TUnit.TestProject.InitializableClass,TUnit.TestProject.InitializableClass):0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt index d5a78e14d6..c080917a86 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTests2 : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTests2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTests2()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTests2()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -99,7 +99,7 @@ file partial class ClassDataSourceDrivenTests2 : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{classDataIndex}:CL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests2(TUnit.TestProject.ClassDataSourceDrivenTests2.Base).Base_Derived1:0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), @@ -187,7 +187,7 @@ file partial class ClassDataSourceDrivenTests2 : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{classDataIndex}:CL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests2(TUnit.TestProject.ClassDataSourceDrivenTests2.Base).Base_Derived1:0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), @@ -215,12 +215,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTests2 : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTests2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTests2()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTests2()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -304,7 +304,7 @@ file partial class ClassDataSourceDrivenTests2 : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{classDataIndex}:CL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests2(TUnit.TestProject.ClassDataSourceDrivenTests2.Base).Base_Derived2:0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), @@ -392,7 +392,7 @@ file partial class ClassDataSourceDrivenTests2 : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{classDataIndex}:CL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTests2(TUnit.TestProject.ClassDataSourceDrivenTests2.Base).Base_Derived2:0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt index 9359d9de16..45e6dfc8fb 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTestsSharedKeyed : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTestsSharedKeyed : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTestsSharedKeyed()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTestsSharedKeyed()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -92,7 +92,7 @@ file partial class ClassDataSourceDrivenTestsSharedKeyed : TUnit.Core.Interfaces } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed.DataSource_Class(SomeAsyncDisposableClass):0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed), @@ -120,12 +120,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassDataSourceDrivenTestsSharedKeyed : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassDataSourceDrivenTestsSharedKeyed : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassDataSourceDrivenTestsSharedKeyed()); + global::TUnit.Core.SourceRegistrar.Register(new ClassDataSourceDrivenTestsSharedKeyed()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -202,7 +202,7 @@ file partial class ClassDataSourceDrivenTestsSharedKeyed : TUnit.Core.Interfaces } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed.DataSource_Class_Generic(SomeAsyncDisposableClass):0", TestClass = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed), diff --git a/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt index 5fdb8c1ce3..3facca8326 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ClassTupleDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ClassTupleDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ClassTupleDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new ClassTupleDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -104,7 +104,7 @@ file partial class ClassTupleDataSourceDrivenTests : TUnit.Core.Interfaces.Sourc } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.ClassTupleDataSourceDrivenTests(System.Int32,System.String,System.Boolean).DataSource_TupleMethod(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests), @@ -195,7 +195,7 @@ file partial class ClassTupleDataSourceDrivenTests : TUnit.Core.Interfaces.Sourc } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS1:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.ClassTupleDataSourceDrivenTests(System.Int32,System.String,System.Boolean).DataSource_TupleMethod(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests), @@ -286,7 +286,7 @@ file partial class ClassTupleDataSourceDrivenTests : TUnit.Core.Interfaces.Sourc } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS1:TUnit.TestProject.ClassTupleDataSourceDrivenTests(System.Int32,System.String,System.Boolean).DataSource_TupleMethod(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests), @@ -377,7 +377,7 @@ file partial class ClassTupleDataSourceDrivenTests : TUnit.Core.Interfaces.Sourc } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS1:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS1:TUnit.TestProject.ClassTupleDataSourceDrivenTests(System.Int32,System.String,System.Boolean).DataSource_TupleMethod(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests), diff --git a/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt index 1e012bce0b..335e7ea1f3 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConcreteClass2 : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConcreteClass2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConcreteClass2()); + global::TUnit.Core.SourceRegistrar.Register(new ConcreteClass2()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -74,7 +74,7 @@ file partial class ConcreteClass2 : TUnit.Core.Interfaces.SourceGenerator.ITestS } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.AbstractTests.ConcreteClass2.SecondTest:0", TestClass = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), @@ -102,12 +102,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Inherited_ConcreteClass2 : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class Inherited_ConcreteClass2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new Inherited_ConcreteClass2()); + global::TUnit.Core.SourceRegistrar.Register(new Inherited_ConcreteClass2()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -166,7 +166,7 @@ file partial class Inherited_ConcreteClass2 : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.AbstractTests.ConcreteClass2.AssertClassName:0", TestClass = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), @@ -194,12 +194,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Inherited_ConcreteClass1 : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class Inherited_ConcreteClass1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new Inherited_ConcreteClass1()); + global::TUnit.Core.SourceRegistrar.Register(new Inherited_ConcreteClass1()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -255,7 +255,7 @@ file partial class Inherited_ConcreteClass1 : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.AbstractTests.ConcreteClass1.AssertClassName:0", TestClass = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt index 38ae14d284..6451dd9429 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConstantArgumentsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConstantArgumentsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ConstantArgumentsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -73,7 +73,7 @@ file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ConstantArgumentsTests.String1(System.String):0", TestClass = typeof(global::TUnit.TestProject.ConstantArgumentsTests), @@ -101,12 +101,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConstantArgumentsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConstantArgumentsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ConstantArgumentsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -164,7 +164,7 @@ file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ConstantArgumentsTests.Int(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.ConstantArgumentsTests), @@ -192,12 +192,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConstantArgumentsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConstantArgumentsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ConstantArgumentsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -255,7 +255,7 @@ file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ConstantArgumentsTests.Double(System.Double):0", TestClass = typeof(global::TUnit.TestProject.ConstantArgumentsTests), @@ -283,12 +283,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConstantArgumentsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConstantArgumentsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ConstantArgumentsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -346,7 +346,7 @@ file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ConstantArgumentsTests.Float(System.Single):0", TestClass = typeof(global::TUnit.TestProject.ConstantArgumentsTests), @@ -374,12 +374,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConstantArgumentsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConstantArgumentsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ConstantArgumentsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -437,7 +437,7 @@ file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ConstantArgumentsTests.Long(System.Int64):0", TestClass = typeof(global::TUnit.TestProject.ConstantArgumentsTests), @@ -465,12 +465,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConstantArgumentsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConstantArgumentsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ConstantArgumentsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -528,7 +528,7 @@ file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ConstantArgumentsTests.UInt(System.UInt32):0", TestClass = typeof(global::TUnit.TestProject.ConstantArgumentsTests), @@ -556,12 +556,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConstantArgumentsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConstantArgumentsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ConstantArgumentsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -619,7 +619,7 @@ file partial class ConstantArgumentsTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.ConstantArgumentsTests.ULong(System.UInt64):0", TestClass = typeof(global::TUnit.TestProject.ConstantArgumentsTests), diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt index 84ae34a537..4334f9b687 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConstantInBaseClassTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConstantInBaseClassTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConstantInBaseClassTests()); + global::TUnit.Core.SourceRegistrar.Register(new ConstantInBaseClassTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -73,7 +73,7 @@ file partial class ConstantInBaseClassTests : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests.SomeTest(System.String):0", TestClass = typeof(global::TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests), diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt index edc9140fb5..73d592bc46 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class ConstantsInInterpolatedStringsTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class ConstantsInInterpolatedStringsTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new ConstantsInInterpolatedStringsTests()); + global::TUnit.Core.SourceRegistrar.Register(new ConstantsInInterpolatedStringsTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -73,7 +73,7 @@ file partial class ConstantsInInterpolatedStringsTests : TUnit.Core.Interfaces.S } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests.SomeTest(System.String):0", TestClass = typeof(global::TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests), diff --git a/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt index 9532a2250d..4185dba4a3 100644 --- a/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class CustomDisplayNameTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new CustomDisplayNameTests()); + global::TUnit.Core.SourceRegistrar.Register(new CustomDisplayNameTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -71,7 +71,7 @@ file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.CustomDisplayNameTests.Test:0", TestClass = typeof(global::TUnit.TestProject.CustomDisplayNameTests), @@ -99,12 +99,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class CustomDisplayNameTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new CustomDisplayNameTests()); + global::TUnit.Core.SourceRegistrar.Register(new CustomDisplayNameTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -160,7 +160,7 @@ file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.CustomDisplayNameTests.Test2:0", TestClass = typeof(global::TUnit.TestProject.CustomDisplayNameTests), @@ -188,12 +188,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class CustomDisplayNameTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new CustomDisplayNameTests()); + global::TUnit.Core.SourceRegistrar.Register(new CustomDisplayNameTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -263,7 +263,7 @@ file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.CustomDisplayNameTests.Test3(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.CustomDisplayNameTests), @@ -337,7 +337,7 @@ file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.CustomDisplayNameTests.Test3(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.CustomDisplayNameTests), @@ -365,12 +365,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class CustomDisplayNameTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new CustomDisplayNameTests()); + global::TUnit.Core.SourceRegistrar.Register(new CustomDisplayNameTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -430,7 +430,7 @@ file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.CustomDisplayNameTests.MethodDataSourceTest(System.String):0", TestClass = typeof(global::TUnit.TestProject.CustomDisplayNameTests), @@ -458,12 +458,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class CustomDisplayNameTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new CustomDisplayNameTests()); + global::TUnit.Core.SourceRegistrar.Register(new CustomDisplayNameTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -540,7 +540,7 @@ file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.TestProject.CustomDisplayNameTests.MyGenerator:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.CustomDisplayNameTests.PasswordTest(System.String):0", TestClass = typeof(global::TUnit.TestProject.CustomDisplayNameTests), @@ -568,12 +568,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class CustomDisplayNameTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new CustomDisplayNameTests()); + global::TUnit.Core.SourceRegistrar.Register(new CustomDisplayNameTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -629,7 +629,7 @@ file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.CustomDisplayNameTests.SameClassConstantTest:0", TestClass = typeof(global::TUnit.TestProject.CustomDisplayNameTests), @@ -657,12 +657,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class CustomDisplayNameTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new CustomDisplayNameTests()); + global::TUnit.Core.SourceRegistrar.Register(new CustomDisplayNameTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -718,7 +718,7 @@ file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.CustomDisplayNameTests.DifferentClassConstantTest:0", TestClass = typeof(global::TUnit.TestProject.CustomDisplayNameTests), @@ -746,12 +746,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class CustomDisplayNameTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new CustomDisplayNameTests()); + global::TUnit.Core.SourceRegistrar.Register(new CustomDisplayNameTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -807,7 +807,7 @@ file partial class CustomDisplayNameTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.CustomDisplayNameTests.NestedClassConstantTest:0", TestClass = typeof(global::TUnit.TestProject.CustomDisplayNameTests), diff --git a/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt index 77a59ae1cf..bcc1b8f687 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -84,7 +84,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.DataDrivenTests.DataSource_Method(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -156,7 +156,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.DataDrivenTests.DataSource_Method(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -228,7 +228,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS2:TUnit.TestProject.DataDrivenTests.DataSource_Method(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -256,12 +256,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -331,7 +331,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.DataDrivenTests.DataSource_Method(System.Int32,System.String):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -404,7 +404,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.DataDrivenTests.DataSource_Method(System.Int32,System.String):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -477,7 +477,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS2:TUnit.TestProject.DataDrivenTests.DataSource_Method(System.Int32,System.String):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -505,12 +505,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -579,7 +579,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.DataDrivenTests.EnumValue(TUnit.TestProject.TestEnum):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -651,7 +651,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.DataDrivenTests.EnumValue(TUnit.TestProject.TestEnum):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -723,7 +723,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS2:TUnit.TestProject.DataDrivenTests.EnumValue(TUnit.TestProject.TestEnum):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -751,12 +751,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -814,7 +814,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.DataDrivenTests.NullValue(System.String):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -842,12 +842,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -905,7 +905,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.DataDrivenTests.EmptyString(System.String):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -933,12 +933,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -996,7 +996,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.DataDrivenTests.NonEmptyString(System.String):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -1024,12 +1024,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -1098,7 +1098,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.DataDrivenTests.BooleanString(System.Boolean?):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -1170,7 +1170,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.DataDrivenTests.BooleanString(System.Boolean?):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -1242,7 +1242,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS2:TUnit.TestProject.DataDrivenTests.BooleanString(System.Boolean?):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -1270,12 +1270,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -1333,7 +1333,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.DataDrivenTests.Type(System.Type):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -1361,12 +1361,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -1424,7 +1424,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.DataDrivenTests.IntegerArray(System.Int32[]):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), @@ -1452,12 +1452,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -1515,7 +1515,7 @@ file partial class DataDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITest } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.DataDrivenTests.IntMaxValue(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataDrivenTests), diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt index 06be90d647..5004d1c5a6 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataSourceClassCombinedWithDataSourceMethod : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataSourceClassCombinedWithDataSourceMethod : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataSourceClassCombinedWithDataSourceMethod()); + global::TUnit.Core.SourceRegistrar.Register(new DataSourceClassCombinedWithDataSourceMethod()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -99,7 +99,7 @@ file partial class DataSourceClassCombinedWithDataSourceMethod : TUnit.Core.Inte } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod(System.Int32).DataSourceClassCombinedWithDataSourceMethodTest(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), @@ -180,7 +180,7 @@ file partial class DataSourceClassCombinedWithDataSourceMethod : TUnit.Core.Inte } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS1:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod(System.Int32).DataSourceClassCombinedWithDataSourceMethodTest(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), @@ -261,7 +261,7 @@ file partial class DataSourceClassCombinedWithDataSourceMethod : TUnit.Core.Inte } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS2:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod(System.Int32).DataSourceClassCombinedWithDataSourceMethodTest(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), @@ -342,7 +342,7 @@ file partial class DataSourceClassCombinedWithDataSourceMethod : TUnit.Core.Inte } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS1:TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod(System.Int32).DataSourceClassCombinedWithDataSourceMethodTest(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), @@ -423,7 +423,7 @@ file partial class DataSourceClassCombinedWithDataSourceMethod : TUnit.Core.Inte } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS1:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS1:TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod(System.Int32).DataSourceClassCombinedWithDataSourceMethodTest(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), @@ -504,7 +504,7 @@ file partial class DataSourceClassCombinedWithDataSourceMethod : TUnit.Core.Inte } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS2:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS1:TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod(System.Int32).DataSourceClassCombinedWithDataSourceMethodTest(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), @@ -585,7 +585,7 @@ file partial class DataSourceClassCombinedWithDataSourceMethod : TUnit.Core.Inte } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS2:TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod(System.Int32).DataSourceClassCombinedWithDataSourceMethodTest(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), @@ -666,7 +666,7 @@ file partial class DataSourceClassCombinedWithDataSourceMethod : TUnit.Core.Inte } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS1:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS2:TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod(System.Int32).DataSourceClassCombinedWithDataSourceMethodTest(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), @@ -747,7 +747,7 @@ file partial class DataSourceClassCombinedWithDataSourceMethod : TUnit.Core.Inte } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS2:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS2:TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod(System.Int32).DataSourceClassCombinedWithDataSourceMethodTest(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.NonTyped.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.NonTyped.verified.txt index a94604bf63..8767f475e3 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.NonTyped.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.NonTyped.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class AutoDataTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class AutoDataTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new AutoDataTests()); + global::TUnit.Core.SourceRegistrar.Register(new AutoDataTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -96,7 +96,7 @@ file partial class AutoDataTests : TUnit.Core.Interfaces.SourceGenerator.ITestSo } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.TestProject.Attributes.AutoDataAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.AutoDataTests.Test1(System.String,System.Int32,System.Double,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.AutoDataTests), diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt index db21df673d..f205ba4dca 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataSourceGeneratorTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataSourceGeneratorTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataSourceGeneratorTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataSourceGeneratorTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -127,7 +127,7 @@ file partial class DataSourceGeneratorTests : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{classDataIndex}:CL-GAC0:global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.DataSourceGeneratorTests(System.Int32,System.String,System.Boolean).GeneratedData_Method(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), @@ -243,7 +243,7 @@ file partial class DataSourceGeneratorTests : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{classDataIndex}:CL-GAC0:global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.DataSourceGeneratorTests(System.Int32,System.String,System.Boolean).GeneratedData_Method(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), @@ -271,12 +271,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataSourceGeneratorTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataSourceGeneratorTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataSourceGeneratorTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataSourceGeneratorTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -392,7 +392,7 @@ file partial class DataSourceGeneratorTests : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{classDataIndex}:CL-GAC0:global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.DataSourceGeneratorTests(System.Int32,System.String,System.Boolean).GeneratedData_Method2(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), @@ -512,7 +512,7 @@ file partial class DataSourceGeneratorTests : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{classDataIndex}:CL-GAC0:global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.DataSourceGeneratorTests(System.Int32,System.String,System.Boolean).GeneratedData_Method2(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), @@ -540,12 +540,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class DataSourceGeneratorTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class DataSourceGeneratorTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new DataSourceGeneratorTests()); + global::TUnit.Core.SourceRegistrar.Register(new DataSourceGeneratorTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -661,7 +661,7 @@ file partial class DataSourceGeneratorTests : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{classDataIndex}:CL-GAC0:global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.DataSourceGeneratorTests(System.Int32,System.String,System.Boolean).GeneratedData_Method3(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), @@ -781,7 +781,7 @@ file partial class DataSourceGeneratorTests : TUnit.Core.Interfaces.SourceGenera } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{classDataIndex}:CL-GAC0:global::TUnit.TestProject.DataSourceGeneratorTests.AutoFixtureGeneratorAttribute:{testMethodDataIndex}:TL-GAC0:TUnit.TestProject.DataSourceGeneratorTests(System.Int32,System.String,System.Boolean).GeneratedData_Method3(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), diff --git a/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt index 7137a588bb..adb343446e 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class EnumMemberNamesTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class EnumMemberNamesTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new EnumMemberNamesTests()); + global::TUnit.Core.SourceRegistrar.Register(new EnumMemberNamesTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -84,7 +84,7 @@ file partial class EnumMemberNamesTests : TUnit.Core.Interfaces.SourceGenerator. } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.Bugs._1432.EnumMemberNamesTests.SomeTest(System.String):0", TestClass = typeof(global::TUnit.TestProject.Bugs._1432.EnumMemberNamesTests), @@ -156,7 +156,7 @@ file partial class EnumMemberNamesTests : TUnit.Core.Interfaces.SourceGenerator. } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.Bugs._1432.EnumMemberNamesTests.SomeTest(System.String):0", TestClass = typeof(global::TUnit.TestProject.Bugs._1432.EnumMemberNamesTests), @@ -228,7 +228,7 @@ file partial class EnumMemberNamesTests : TUnit.Core.Interfaces.SourceGenerator. } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS2:TUnit.TestProject.Bugs._1432.EnumMemberNamesTests.SomeTest(System.String):0", TestClass = typeof(global::TUnit.TestProject.Bugs._1432.EnumMemberNamesTests), diff --git a/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt index cabad95aa0..837339c682 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class EnumerableDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class EnumerableDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new EnumerableDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new EnumerableDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -76,7 +76,7 @@ file partial class EnumerableDataSourceDrivenTests : TUnit.Core.Interfaces.Sourc } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS0:{testMethodDataIndex}:TUnit.TestProject.EnumerableDataSourceDrivenTests.DataSource_Method(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), @@ -104,12 +104,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class EnumerableDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class EnumerableDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new EnumerableDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new EnumerableDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -170,7 +170,7 @@ file partial class EnumerableDataSourceDrivenTests : TUnit.Core.Interfaces.Sourc } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS0:{testMethodDataIndex}:TUnit.TestProject.EnumerableDataSourceDrivenTests.DataSource_Method2(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), @@ -198,12 +198,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class EnumerableDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class EnumerableDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new EnumerableDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new EnumerableDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -264,7 +264,7 @@ file partial class EnumerableDataSourceDrivenTests : TUnit.Core.Interfaces.Sourc } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS0:{testMethodDataIndex}:TUnit.TestProject.EnumerableDataSourceDrivenTests.DataSource_WithBaseReturn(TUnit.TestProject.EnumerableDataSourceDrivenTests.BaseValue):0", TestClass = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), diff --git a/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt index 2f907407c3..4789e93646 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class EnumerableTupleDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class EnumerableTupleDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new EnumerableTupleDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new EnumerableTupleDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -87,7 +87,7 @@ file partial class EnumerableTupleDataSourceDrivenTests : TUnit.Core.Interfaces. } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS0:{testMethodDataIndex}:TUnit.TestProject.EnumerableTupleDataSourceDrivenTests.DataSource_TupleMethod(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests), @@ -163,7 +163,7 @@ file partial class EnumerableTupleDataSourceDrivenTests : TUnit.Core.Interfaces. } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS1:{testMethodDataIndex}:TUnit.TestProject.EnumerableTupleDataSourceDrivenTests.DataSource_TupleMethod(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests), diff --git a/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt index e0d8179729..69583a6f42 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class GenericMethodTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class GenericMethodTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new GenericMethodTests()); + global::TUnit.Core.SourceRegistrar.Register(new GenericMethodTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -90,7 +90,7 @@ file partial class GenericMethodTests : TUnit.Core.Interfaces.SourceGenerator.IT } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS0:{testMethodDataIndex}:TUnit.TestProject.GenericMethodTests.AggregateBy_HasExpectedOutput(System.Collections.Generic.IEnumerable,TKey System.Func(TSource),TAccumulate System.Func(TKey),TAccumulate System.Func(TAccumulate, TSource),System.Collections.Generic.IEqualityComparer,System.Collections.Generic.IEnumerable>):0", TestClass = typeof(global::TUnit.TestProject.GenericMethodTests), @@ -169,7 +169,7 @@ file partial class GenericMethodTests : TUnit.Core.Interfaces.SourceGenerator.IT } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS1:{testMethodDataIndex}:TUnit.TestProject.GenericMethodTests.AggregateBy_HasExpectedOutput(System.Collections.Generic.IEnumerable,TKey System.Func(TSource),TAccumulate System.Func(TKey),TAccumulate System.Func(TAccumulate, TSource),System.Collections.Generic.IEqualityComparer,System.Collections.Generic.IEnumerable>):0", TestClass = typeof(global::TUnit.TestProject.GenericMethodTests), diff --git a/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt index 4bf81bbb42..af9bc33751 100644 --- a/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt @@ -12,7 +12,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -20,25 +20,25 @@ file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase1(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -73,7 +73,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -81,25 +81,25 @@ file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase2(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -134,7 +134,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase3 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -142,25 +142,25 @@ file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase3(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -195,7 +195,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalCleanUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -203,25 +203,25 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_GlobalCleanUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -256,7 +256,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalCleanUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -264,25 +264,25 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_GlobalCleanUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -320,7 +320,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalCleanUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -328,25 +328,25 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_GlobalCleanUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -381,7 +381,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalCleanUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -389,25 +389,25 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_GlobalCleanUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -445,7 +445,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -453,13 +453,13 @@ file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase1(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ @@ -480,13 +480,13 @@ file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITe }, ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -508,7 +508,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -516,13 +516,13 @@ file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase2(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ @@ -543,13 +543,13 @@ file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITe }, ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -571,7 +571,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase3 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -579,13 +579,13 @@ file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase3(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ @@ -606,13 +606,13 @@ file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITe }, ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -634,7 +634,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalCleanUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -642,13 +642,13 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_GlobalCleanUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ @@ -669,13 +669,13 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera }, ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -697,7 +697,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalCleanUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -705,13 +705,13 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_GlobalCleanUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ @@ -732,13 +732,13 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera }, ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -760,7 +760,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalCleanUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -768,13 +768,13 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_GlobalCleanUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ @@ -795,13 +795,13 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera }, ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -823,7 +823,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalCleanUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -831,13 +831,13 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera var instance = new Hooks_GlobalCleanUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ @@ -858,13 +858,13 @@ file partial class Hooks_GlobalCleanUpTests : TUnit.Core.Interfaces.SourceGenera }, ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ diff --git a/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt index f1877c4606..385a2d16e4 100644 --- a/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt @@ -12,7 +12,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -20,19 +20,19 @@ file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase1(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -51,7 +51,7 @@ file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITe }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -73,7 +73,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -81,19 +81,19 @@ file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase2(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -112,7 +112,7 @@ file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITe }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -134,7 +134,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase3 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -142,19 +142,19 @@ file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase3(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -173,7 +173,7 @@ file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITe }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -195,7 +195,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalSetUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -203,19 +203,19 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato var instance = new Hooks_GlobalSetUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -234,7 +234,7 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -256,7 +256,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalSetUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -264,19 +264,19 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato var instance = new Hooks_GlobalSetUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -298,7 +298,7 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -320,7 +320,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalSetUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -328,19 +328,19 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato var instance = new Hooks_GlobalSetUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -359,7 +359,7 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -381,7 +381,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalSetUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -389,19 +389,19 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato var instance = new Hooks_GlobalSetUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -423,7 +423,7 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -445,7 +445,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase1 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -453,7 +453,7 @@ file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase1(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ @@ -474,19 +474,19 @@ file partial class Hooks_GlobalBase1 : TUnit.Core.Interfaces.SourceGenerator.ITe }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -508,7 +508,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase2 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -516,7 +516,7 @@ file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase2(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ @@ -537,19 +537,19 @@ file partial class Hooks_GlobalBase2 : TUnit.Core.Interfaces.SourceGenerator.ITe }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -571,7 +571,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalBase3 : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -579,7 +579,7 @@ file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITe var instance = new Hooks_GlobalBase3(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ @@ -600,19 +600,19 @@ file partial class Hooks_GlobalBase3 : TUnit.Core.Interfaces.SourceGenerator.ITe }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -634,7 +634,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalSetUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -642,7 +642,7 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato var instance = new Hooks_GlobalSetUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ @@ -663,19 +663,19 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -697,7 +697,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalSetUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -705,7 +705,7 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato var instance = new Hooks_GlobalSetUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ @@ -726,19 +726,19 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -760,7 +760,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalSetUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -768,7 +768,7 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato var instance = new Hooks_GlobalSetUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ @@ -789,19 +789,19 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -823,7 +823,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_GlobalSetUpTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -831,7 +831,7 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato var instance = new Hooks_GlobalSetUpTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ @@ -852,19 +852,19 @@ file partial class Hooks_GlobalSetUpTests : TUnit.Core.Interfaces.SourceGenerato }, ]; } -public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } -public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) +public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ diff --git a/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt index 53ca616b32..0a6fc49905 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class PropertySetterTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class PropertySetterTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new PropertySetterTests()); + global::TUnit.Core.SourceRegistrar.Register(new PropertySetterTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -158,7 +158,7 @@ file partial class PropertySetterTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.PropertySetterTests.Test:0", TestClass = typeof(global::TUnit.TestProject.PropertySetterTests), @@ -186,12 +186,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Inherited_InheritedPropertySetterTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class Inherited_InheritedPropertySetterTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new Inherited_InheritedPropertySetterTests()); + global::TUnit.Core.SourceRegistrar.Register(new Inherited_InheritedPropertySetterTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -337,7 +337,7 @@ file partial class Inherited_InheritedPropertySetterTests : TUnit.Core.Interface } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.InheritedPropertySetterTests.Test:0", TestClass = typeof(global::TUnit.TestProject.InheritedPropertySetterTests), diff --git a/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt index a7f85bc69e..2962c36cf1 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class InheritedTestsFromDifferentProjectTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class InheritedTestsFromDifferentProjectTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new InheritedTestsFromDifferentProjectTests()); + global::TUnit.Core.SourceRegistrar.Register(new InheritedTestsFromDifferentProjectTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -71,7 +71,7 @@ file partial class InheritedTestsFromDifferentProjectTests : TUnit.Core.Interfac } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.InheritedTestsFromDifferentProjectTests.Test:0", TestClass = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), @@ -99,12 +99,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class InheritedTestsFromDifferentProjectTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class InheritedTestsFromDifferentProjectTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new InheritedTestsFromDifferentProjectTests()); + global::TUnit.Core.SourceRegistrar.Register(new InheritedTestsFromDifferentProjectTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -164,7 +164,7 @@ file partial class InheritedTestsFromDifferentProjectTests : TUnit.Core.Interfac } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.InheritedTestsFromDifferentProjectTests.GenericMethodDataSource(System.String):0", TestClass = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), @@ -192,12 +192,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class InheritedTestsFromDifferentProjectTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class InheritedTestsFromDifferentProjectTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new InheritedTestsFromDifferentProjectTests()); + global::TUnit.Core.SourceRegistrar.Register(new InheritedTestsFromDifferentProjectTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -257,7 +257,7 @@ file partial class InheritedTestsFromDifferentProjectTests : TUnit.Core.Interfac } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.InheritedTestsFromDifferentProjectTests.NonGenericMethodDataSource(System.String):0", TestClass = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), @@ -285,12 +285,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Inherited_InheritedTestsFromDifferentProjectTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class Inherited_InheritedTestsFromDifferentProjectTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new Inherited_InheritedTestsFromDifferentProjectTests()); + global::TUnit.Core.SourceRegistrar.Register(new Inherited_InheritedTestsFromDifferentProjectTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -346,7 +346,7 @@ file partial class Inherited_InheritedTestsFromDifferentProjectTests : TUnit.Cor } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.InheritedTestsFromDifferentProjectTests.BaseTest:0", TestClass = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), diff --git a/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt index 7115d941ec..adca19c430 100644 --- a/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MatrixTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MatrixTests()); + global::TUnit.Core.SourceRegistrar.Register(new MatrixTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -98,7 +98,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS0:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -163,7 +163,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS1:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -228,7 +228,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS2:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -293,7 +293,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS3:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -358,7 +358,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS4:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -423,7 +423,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS5:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -488,7 +488,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS6:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -553,7 +553,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS7:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -618,7 +618,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS8:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -683,7 +683,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS9:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -748,7 +748,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS10:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -813,7 +813,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS11:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -878,7 +878,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS12:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -943,7 +943,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS13:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1008,7 +1008,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS14:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1073,7 +1073,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS15:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1138,7 +1138,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS16:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1203,7 +1203,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS17:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1268,7 +1268,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS18:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1333,7 +1333,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS19:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1398,7 +1398,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS20:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1463,7 +1463,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS21:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1528,7 +1528,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS22:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1593,7 +1593,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS23:TUnit.TestProject.MatrixTests.MatrixTest_One(System.String,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1621,12 +1621,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MatrixTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MatrixTests()); + global::TUnit.Core.SourceRegistrar.Register(new MatrixTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -1734,7 +1734,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS0:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1800,7 +1800,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS1:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1866,7 +1866,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS2:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1932,7 +1932,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS3:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -1998,7 +1998,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS4:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2064,7 +2064,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS5:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2130,7 +2130,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS6:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2196,7 +2196,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS7:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2262,7 +2262,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS8:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2328,7 +2328,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS9:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2394,7 +2394,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS10:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2460,7 +2460,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS11:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2526,7 +2526,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS12:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2592,7 +2592,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS13:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2658,7 +2658,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS14:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2724,7 +2724,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS15:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2790,7 +2790,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS16:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2856,7 +2856,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS17:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2922,7 +2922,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS18:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -2988,7 +2988,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS19:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3054,7 +3054,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS20:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3120,7 +3120,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS21:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3186,7 +3186,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS22:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3252,7 +3252,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS23:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3318,7 +3318,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS24:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3384,7 +3384,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS25:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3450,7 +3450,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS26:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3516,7 +3516,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS27:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3582,7 +3582,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS28:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3648,7 +3648,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS29:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3714,7 +3714,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS30:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3780,7 +3780,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS31:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3846,7 +3846,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS32:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3912,7 +3912,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS33:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -3978,7 +3978,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS34:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4044,7 +4044,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS35:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4110,7 +4110,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS36:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4176,7 +4176,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS37:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4242,7 +4242,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS38:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4308,7 +4308,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS39:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4374,7 +4374,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS40:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4440,7 +4440,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS41:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4506,7 +4506,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS42:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4572,7 +4572,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS43:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4638,7 +4638,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS44:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4704,7 +4704,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS45:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4770,7 +4770,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS46:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4836,7 +4836,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS47:TUnit.TestProject.MatrixTests.MatrixTest_Two(System.Int32,System.Int32,System.Int32,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4864,12 +4864,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MatrixTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MatrixTests()); + global::TUnit.Core.SourceRegistrar.Register(new MatrixTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -4931,7 +4931,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS0:TUnit.TestProject.MatrixTests.MatrixTest_Enum(System.Int32,TUnit.TestProject.TestEnum):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -4995,7 +4995,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS1:TUnit.TestProject.MatrixTests.MatrixTest_Enum(System.Int32,TUnit.TestProject.TestEnum):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -5059,7 +5059,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS2:TUnit.TestProject.MatrixTests.MatrixTest_Enum(System.Int32,TUnit.TestProject.TestEnum):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), @@ -5123,7 +5123,7 @@ file partial class MatrixTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TL-ARGS3:TUnit.TestProject.MatrixTests.MatrixTest_Enum(System.Int32,TUnit.TestProject.TestEnum):0", TestClass = typeof(global::TUnit.TestProject.MatrixTests), diff --git a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt index 9bf2932304..cb6671a771 100644 --- a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MethodDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MethodDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new MethodDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -72,7 +72,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.MethodDataSourceDrivenTests.DataSource_Method(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), @@ -100,12 +100,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MethodDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MethodDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new MethodDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -162,7 +162,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.MethodDataSourceDrivenTests.DataSource_Method2(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), @@ -190,12 +190,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MethodDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MethodDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new MethodDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -252,7 +252,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.MethodDataSourceDrivenTests.DataSource_Method_WithAction(void System.Action()):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), @@ -280,12 +280,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MethodDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MethodDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new MethodDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -349,7 +349,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.MethodDataSourceDrivenTests.DataSource_Method3(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), @@ -417,7 +417,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS1:TUnit.TestProject.MethodDataSourceDrivenTests.DataSource_Method3(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), @@ -445,12 +445,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MethodDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MethodDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new MethodDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -522,7 +522,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.MethodDataSourceDrivenTests.DataSource_Method4(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), @@ -596,7 +596,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS1:TUnit.TestProject.MethodDataSourceDrivenTests.DataSource_Method4(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), @@ -670,7 +670,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS2:TUnit.TestProject.MethodDataSourceDrivenTests.DataSource_Method4(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), @@ -744,7 +744,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS3:TUnit.TestProject.MethodDataSourceDrivenTests.DataSource_Method4(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), @@ -772,12 +772,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MethodDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MethodDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new MethodDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -834,7 +834,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.MethodDataSourceDrivenTests.DataSource_WithBaseReturn(TUnit.TestProject.MethodDataSourceDrivenTests.BaseValue):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), @@ -862,12 +862,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MethodDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MethodDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new MethodDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -928,7 +928,7 @@ file partial class MethodDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGen } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS0:{testMethodDataIndex}:TUnit.TestProject.MethodDataSourceDrivenTests.EnumerableFuncArrayTest(System.String[]):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), diff --git a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt index 45e593d6c4..49cfc17ff4 100644 --- a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MethodDataSourceDrivenWithCancellationTokenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MethodDataSourceDrivenWithCancellationTokenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MethodDataSourceDrivenWithCancellationTokenTests()); + global::TUnit.Core.SourceRegistrar.Register(new MethodDataSourceDrivenWithCancellationTokenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -98,7 +98,7 @@ file partial class MethodDataSourceDrivenWithCancellationTokenTests : TUnit.Core } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests.MyTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests), @@ -181,7 +181,7 @@ file partial class MethodDataSourceDrivenWithCancellationTokenTests : TUnit.Core } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS1:TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests.MyTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests), @@ -268,7 +268,7 @@ file partial class MethodDataSourceDrivenWithCancellationTokenTests : TUnit.Core } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS2:{testMethodDataIndex}:TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests.MyTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests), @@ -355,7 +355,7 @@ file partial class MethodDataSourceDrivenWithCancellationTokenTests : TUnit.Core } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS3:{testMethodDataIndex}:TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests.MyTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests), @@ -442,7 +442,7 @@ file partial class MethodDataSourceDrivenWithCancellationTokenTests : TUnit.Core } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS4:{testMethodDataIndex}:TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests.MyTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests), @@ -529,7 +529,7 @@ file partial class MethodDataSourceDrivenWithCancellationTokenTests : TUnit.Core } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS5:{testMethodDataIndex}:TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests.MyTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests), diff --git a/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt index 4367bb97a5..263895fa29 100644 --- a/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MultipleClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MultipleClassDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MultipleClassDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new MultipleClassDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -98,7 +98,7 @@ file partial class MultipleClassDataSourceDrivenTests : TUnit.Core.Interfaces.So } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{classDataIndex}:CL-GAC0:TUnit.TestProject.MultipleClassDataSourceDrivenTests(TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1,TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2,TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3,TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4,TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5).Test1:0", TestClass = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests), @@ -126,12 +126,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class MultipleClassDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class MultipleClassDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new MultipleClassDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new MultipleClassDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -214,7 +214,7 @@ file partial class MultipleClassDataSourceDrivenTests : TUnit.Core.Interfaces.So } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ClassDataSourceAttribute:{classDataIndex}:CL-GAC0:TUnit.TestProject.MultipleClassDataSourceDrivenTests(TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1,TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2,TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3,TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4,TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5).Test2:0", TestClass = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests), diff --git a/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt index 2e5ab4cbe7..9cff0db57f 100644 --- a/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NameOfArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NameOfArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NameOfArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NameOfArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -73,7 +73,7 @@ file partial class NameOfArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NameOfArgumentTests.TestName(System.String):0", TestClass = typeof(global::TUnit.TestProject.NameOfArgumentTests), diff --git a/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt index 0096a643de..bd0ddefb62 100644 --- a/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NullableByteArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NullableByteArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NullableByteArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NullableByteArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -80,7 +80,7 @@ file partial class NullableByteArgumentTests : TUnit.Core.Interfaces.SourceGener } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NullableByteArgumentTests.Test(System.Byte?):0", TestClass = typeof(global::TUnit.TestProject.NullableByteArgumentTests), @@ -149,7 +149,7 @@ file partial class NullableByteArgumentTests : TUnit.Core.Interfaces.SourceGener } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.NullableByteArgumentTests.Test(System.Byte?):0", TestClass = typeof(global::TUnit.TestProject.NullableByteArgumentTests), @@ -177,12 +177,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NullableByteArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NullableByteArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NullableByteArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NullableByteArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -248,7 +248,7 @@ file partial class NullableByteArgumentTests : TUnit.Core.Interfaces.SourceGener } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NullableByteArgumentTests.Test2(System.Byte,System.Byte?):0", TestClass = typeof(global::TUnit.TestProject.NullableByteArgumentTests), @@ -318,7 +318,7 @@ file partial class NullableByteArgumentTests : TUnit.Core.Interfaces.SourceGener } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.NullableByteArgumentTests.Test2(System.Byte,System.Byte?):0", TestClass = typeof(global::TUnit.TestProject.NullableByteArgumentTests), diff --git a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt index 8c4670a724..f0849c4a82 100644 --- a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -73,7 +73,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.Int(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), @@ -101,12 +101,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -164,7 +164,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.Double(System.Double):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), @@ -192,12 +192,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -255,7 +255,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.Float(System.Single):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), @@ -283,12 +283,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -346,7 +346,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.Long(System.Int64):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), @@ -374,12 +374,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -437,7 +437,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.ULong(System.UInt64):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), @@ -465,12 +465,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -528,7 +528,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.UInt(System.UInt32):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), diff --git a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt index 8c4670a724..f0849c4a82 100644 --- a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -73,7 +73,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.Int(System.Int32):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), @@ -101,12 +101,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -164,7 +164,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.Double(System.Double):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), @@ -192,12 +192,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -255,7 +255,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.Float(System.Single):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), @@ -283,12 +283,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -346,7 +346,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.Long(System.Int64):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), @@ -374,12 +374,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -437,7 +437,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.ULong(System.UInt64):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), @@ -465,12 +465,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class NumberArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new NumberArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new NumberArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -528,7 +528,7 @@ file partial class NumberArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.NumberArgumentTests.UInt(System.UInt32):0", TestClass = typeof(global::TUnit.TestProject.NumberArgumentTests), diff --git a/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt index 030ebc25b9..d6966ae987 100644 --- a/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class PriorityFilteringTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new PriorityFilteringTests()); + global::TUnit.Core.SourceRegistrar.Register(new PriorityFilteringTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -71,7 +71,7 @@ file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.PriorityFilteringTests.High_1:0", TestClass = typeof(global::TUnit.TestProject.PriorityFilteringTests), @@ -99,12 +99,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class PriorityFilteringTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new PriorityFilteringTests()); + global::TUnit.Core.SourceRegistrar.Register(new PriorityFilteringTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -160,7 +160,7 @@ file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.PriorityFilteringTests.High_2:0", TestClass = typeof(global::TUnit.TestProject.PriorityFilteringTests), @@ -188,12 +188,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class PriorityFilteringTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new PriorityFilteringTests()); + global::TUnit.Core.SourceRegistrar.Register(new PriorityFilteringTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -249,7 +249,7 @@ file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.PriorityFilteringTests.High_3:0", TestClass = typeof(global::TUnit.TestProject.PriorityFilteringTests), @@ -277,12 +277,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class PriorityFilteringTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new PriorityFilteringTests()); + global::TUnit.Core.SourceRegistrar.Register(new PriorityFilteringTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -338,7 +338,7 @@ file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.PriorityFilteringTests.Medium_1:0", TestClass = typeof(global::TUnit.TestProject.PriorityFilteringTests), @@ -366,12 +366,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class PriorityFilteringTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new PriorityFilteringTests()); + global::TUnit.Core.SourceRegistrar.Register(new PriorityFilteringTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -427,7 +427,7 @@ file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.PriorityFilteringTests.Medium_2:0", TestClass = typeof(global::TUnit.TestProject.PriorityFilteringTests), @@ -455,12 +455,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class PriorityFilteringTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new PriorityFilteringTests()); + global::TUnit.Core.SourceRegistrar.Register(new PriorityFilteringTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -516,7 +516,7 @@ file partial class PriorityFilteringTests : TUnit.Core.Interfaces.SourceGenerato } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.PriorityFilteringTests.Low_1:0", TestClass = typeof(global::TUnit.TestProject.PriorityFilteringTests), diff --git a/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt index 64fd0b7fd0..a500ed6cf1 100644 --- a/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class PropertySetterTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class PropertySetterTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new PropertySetterTests()); + global::TUnit.Core.SourceRegistrar.Register(new PropertySetterTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -158,7 +158,7 @@ file partial class PropertySetterTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.PropertySetterTests.Test:0", TestClass = typeof(global::TUnit.TestProject.PropertySetterTests), diff --git a/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt index df6f45062f..70ef8e9e4e 100644 --- a/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class RepeatTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new RepeatTests()); + global::TUnit.Core.SourceRegistrar.Register(new RepeatTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -78,7 +78,7 @@ file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.RepeatTests.One:0", TestClass = typeof(global::TUnit.TestProject.RepeatTests), @@ -145,7 +145,7 @@ file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.RepeatTests.One:1", TestClass = typeof(global::TUnit.TestProject.RepeatTests), @@ -173,12 +173,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class RepeatTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new RepeatTests()); + global::TUnit.Core.SourceRegistrar.Register(new RepeatTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -242,7 +242,7 @@ file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.RepeatTests.Two:0", TestClass = typeof(global::TUnit.TestProject.RepeatTests), @@ -309,7 +309,7 @@ file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.RepeatTests.Two:1", TestClass = typeof(global::TUnit.TestProject.RepeatTests), @@ -376,7 +376,7 @@ file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.RepeatTests.Two:2", TestClass = typeof(global::TUnit.TestProject.RepeatTests), @@ -404,12 +404,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class RepeatTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new RepeatTests()); + global::TUnit.Core.SourceRegistrar.Register(new RepeatTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -471,7 +471,7 @@ file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.RepeatTests.Three:0", TestClass = typeof(global::TUnit.TestProject.RepeatTests), @@ -535,7 +535,7 @@ file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.RepeatTests.Three:1", TestClass = typeof(global::TUnit.TestProject.RepeatTests), @@ -599,7 +599,7 @@ file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.RepeatTests.Three:2", TestClass = typeof(global::TUnit.TestProject.RepeatTests), @@ -663,7 +663,7 @@ file partial class RepeatTests : TUnit.Core.Interfaces.SourceGenerator.ITestSour } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.RepeatTests.Three:3", TestClass = typeof(global::TUnit.TestProject.RepeatTests), diff --git a/TUnit.Core.SourceGenerator.Tests/STAThreadHooksTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/STAThreadHooksTests.Test.verified.txt index b4da388f60..06d0dc45f7 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadHooksTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadHooksTests.Test.verified.txt @@ -12,7 +12,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_STAThreadTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_STAThreadTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -20,19 +20,19 @@ file partial class Hooks_STAThreadTests : TUnit.Core.Interfaces.SourceGenerator. var instance = new Hooks_STAThreadTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ @@ -57,7 +57,7 @@ file partial class Hooks_STAThreadTests : TUnit.Core.Interfaces.SourceGenerator. }, ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ @@ -79,7 +79,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_STAThreadTests : TUnit.Core.Interfaces.SourceGenerator.ITestHookSource +file partial class Hooks_STAThreadTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -87,25 +87,25 @@ file partial class Hooks_STAThreadTests : TUnit.Core.Interfaces.SourceGenerator. var instance = new Hooks_STAThreadTests(); SourceRegistrar.RegisterTestHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterEveryTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectBeforeTestHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList CollectAfterTestHooks(string sessionId) { return [ diff --git a/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt index cbfd420a13..e9516e9826 100644 --- a/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class StringArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new StringArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new StringArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -107,7 +107,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.StringArgumentTests.Normal(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -197,7 +197,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.StringArgumentTests.Normal(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -287,7 +287,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS2:TUnit.TestProject.StringArgumentTests.Normal(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -377,7 +377,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS3:TUnit.TestProject.StringArgumentTests.Normal(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -467,7 +467,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS4:TUnit.TestProject.StringArgumentTests.Normal(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -557,7 +557,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS5:TUnit.TestProject.StringArgumentTests.Normal(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -647,7 +647,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS6:TUnit.TestProject.StringArgumentTests.Normal(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -740,7 +740,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS7:TUnit.TestProject.StringArgumentTests.Normal(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -768,12 +768,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class StringArgumentTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new StringArgumentTests()); + global::TUnit.Core.SourceRegistrar.Register(new StringArgumentTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -862,7 +862,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.StringArgumentTests.Nullable(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -949,7 +949,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS1:TUnit.TestProject.StringArgumentTests.Nullable(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -1036,7 +1036,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS2:TUnit.TestProject.StringArgumentTests.Nullable(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -1123,7 +1123,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS3:TUnit.TestProject.StringArgumentTests.Nullable(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -1210,7 +1210,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS4:TUnit.TestProject.StringArgumentTests.Nullable(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -1297,7 +1297,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS5:TUnit.TestProject.StringArgumentTests.Nullable(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -1384,7 +1384,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS6:TUnit.TestProject.StringArgumentTests.Nullable(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), @@ -1471,7 +1471,7 @@ file partial class StringArgumentTests : TUnit.Core.Interfaces.SourceGenerator.I } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS7:TUnit.TestProject.StringArgumentTests.Nullable(System.String):0", TestClass = typeof(global::TUnit.TestProject.StringArgumentTests), diff --git a/TUnit.Core.SourceGenerator.Tests/TestDiscoveryHookTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/TestDiscoveryHookTests.Test.verified.txt index 41e945b477..edeaf73800 100644 --- a/TUnit.Core.SourceGenerator.Tests/TestDiscoveryHookTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/TestDiscoveryHookTests.Test.verified.txt @@ -12,7 +12,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_TestDiscoveryHookTests : TUnit.Core.Interfaces.SourceGenerator.ITestDiscoveryHookSource +file partial class Hooks_TestDiscoveryHookTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestDiscoveryHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -20,7 +20,7 @@ file partial class Hooks_TestDiscoveryHookTests : TUnit.Core.Interfaces.SourceGe var instance = new Hooks_TestDiscoveryHookTests(); SourceRegistrar.RegisterTestDiscoveryHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeTestDiscoveryHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeTestDiscoveryHooks(string sessionId) { return [ @@ -41,7 +41,7 @@ file partial class Hooks_TestDiscoveryHookTests : TUnit.Core.Interfaces.SourceGe }, ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterTestDiscoveryHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterTestDiscoveryHooks(string sessionId) { return [ @@ -63,7 +63,7 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Hooks_TestDiscoveryHookTests : TUnit.Core.Interfaces.SourceGenerator.ITestDiscoveryHookSource +file partial class Hooks_TestDiscoveryHookTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestDiscoveryHookSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() @@ -71,13 +71,13 @@ file partial class Hooks_TestDiscoveryHookTests : TUnit.Core.Interfaces.SourceGe var instance = new Hooks_TestDiscoveryHookTests(); SourceRegistrar.RegisterTestDiscoveryHookSource(instance); } - public global::System.Collections.Generic.IReadOnlyList> CollectBeforeTestDiscoveryHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectBeforeTestDiscoveryHooks(string sessionId) { return [ ]; } - public global::System.Collections.Generic.IReadOnlyList> CollectAfterTestDiscoveryHooks(string sessionId) + public global::System.Collections.Generic.IReadOnlyList> CollectAfterTestDiscoveryHooks(string sessionId) { return [ diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt index 94ae40008f..0bd96dd2c9 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Tests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class Tests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new Tests()); + global::TUnit.Core.SourceRegistrar.Register(new Tests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -85,7 +85,7 @@ file partial class Tests : TUnit.Core.Interfaces.SourceGenerator.ITestSource } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS0:{testMethodDataIndex}:TUnit.TestProject.Bugs._1538.Tests.Eight_Args(System.Boolean,System.String,System.String,System.String,System.String,System.String,System.String,System.String):0", TestClass = typeof(global::TUnit.TestProject.Bugs._1538.Tests), @@ -113,12 +113,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Tests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class Tests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new Tests()); + global::TUnit.Core.SourceRegistrar.Register(new Tests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -196,7 +196,7 @@ file partial class Tests : TUnit.Core.Interfaces.SourceGenerator.ITestSource } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-EMDS0:{testMethodDataIndex}:TUnit.TestProject.Bugs._1538.Tests.SixteenArgs(System.Boolean,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String):0", TestClass = typeof(global::TUnit.TestProject.Bugs._1538.Tests), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt index aba361194c..e92b1e4933 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class Tests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class Tests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new Tests()); + global::TUnit.Core.SourceRegistrar.Register(new Tests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -80,7 +80,7 @@ file partial class Tests : TUnit.Core.Interfaces.SourceGenerator.ITestSource } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"TUnit.TestProject.Bugs._1539.Tests.Test:0", TestClass = typeof(global::TUnit.TestProject.Bugs._1539.Tests), diff --git a/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt index 364f9ed2d4..39ee55865c 100644 --- a/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class TimeoutCancellationTokenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new TimeoutCancellationTokenTests()); + global::TUnit.Core.SourceRegistrar.Register(new TimeoutCancellationTokenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -75,7 +75,7 @@ file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceG } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:TUnit.TestProject.TimeoutCancellationTokenTests(System.Int32).DefaultTest(System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), @@ -103,12 +103,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class TimeoutCancellationTokenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new TimeoutCancellationTokenTests()); + global::TUnit.Core.SourceRegistrar.Register(new TimeoutCancellationTokenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -174,7 +174,7 @@ file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceG } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:TUnit.TestProject.TimeoutCancellationTokenTests(System.Int32).BasicTest(System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), @@ -202,12 +202,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class TimeoutCancellationTokenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new TimeoutCancellationTokenTests()); + global::TUnit.Core.SourceRegistrar.Register(new TimeoutCancellationTokenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -270,7 +270,7 @@ file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceG } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:TUnit.TestProject.TimeoutCancellationTokenTests(System.Int32).InheritedTimeoutAttribute(System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), @@ -298,12 +298,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class TimeoutCancellationTokenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new TimeoutCancellationTokenTests()); + global::TUnit.Core.SourceRegistrar.Register(new TimeoutCancellationTokenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -371,7 +371,7 @@ file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceG } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:global::TUnit.Core.ArgumentsAttribute:{testMethodDataIndex}:TL-ARGS0:TUnit.TestProject.TimeoutCancellationTokenTests(System.Int32).DataTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), @@ -399,12 +399,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class TimeoutCancellationTokenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new TimeoutCancellationTokenTests()); + global::TUnit.Core.SourceRegistrar.Register(new TimeoutCancellationTokenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -471,7 +471,7 @@ file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceG } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.TimeoutCancellationTokenTests(System.Int32).DataSourceTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), @@ -499,12 +499,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class TimeoutCancellationTokenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new TimeoutCancellationTokenTests()); + global::TUnit.Core.SourceRegistrar.Register(new TimeoutCancellationTokenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -577,7 +577,7 @@ file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceG } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:TL-ARGS0:TUnit.TestProject.TimeoutCancellationTokenTests(System.Int32).MatrixTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), @@ -653,7 +653,7 @@ file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceG } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:TL-ARGS1:TUnit.TestProject.TimeoutCancellationTokenTests(System.Int32).MatrixTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), @@ -729,7 +729,7 @@ file partial class TimeoutCancellationTokenTests : TUnit.Core.Interfaces.SourceG } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{classDataIndex}:CL-MDS0:TL-ARGS2:TUnit.TestProject.TimeoutCancellationTokenTests(System.Int32).MatrixTest(System.Int32,System.Threading.CancellationToken):0", TestClass = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), diff --git a/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt index 41b292a102..50029501f8 100644 --- a/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt @@ -10,12 +10,12 @@ namespace TUnit.SourceGenerated; [global::System.Diagnostics.StackTraceHidden] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] -file partial class TupleDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGenerator.ITestSource +file partial class TupleDataSourceDrivenTests : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialise() { - SourceRegistrar.Register(new TupleDataSourceDrivenTests()); + global::TUnit.Core.SourceRegistrar.Register(new TupleDataSourceDrivenTests()); } public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId) { @@ -75,7 +75,7 @@ file partial class TupleDataSourceDrivenTests : TUnit.Core.Interfaces.SourceGene } catch (global::System.Exception exception) { - nodes.Add(new FailedInitializationTest + nodes.Add(new global::TUnit.Core.FailedInitializationTest { TestId = $"global::TUnit.Core.MethodDataSourceAttribute:{testMethodDataIndex}:TL-MDS0:TUnit.TestProject.TupleDataSourceDrivenTests.DataSource_TupleMethod(System.Int32,System.String,System.Boolean):0", TestClass = typeof(global::TUnit.TestProject.TupleDataSourceDrivenTests), diff --git a/TUnit.Core.SourceGenerator/CodeGenerators/TestHooksGenerator.cs b/TUnit.Core.SourceGenerator/CodeGenerators/TestHooksGenerator.cs index 8166dffd7c..be4a7324c2 100644 --- a/TUnit.Core.SourceGenerator/CodeGenerators/TestHooksGenerator.cs +++ b/TUnit.Core.SourceGenerator/CodeGenerators/TestHooksGenerator.cs @@ -1,6 +1,5 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; -using TUnit.Core.SourceGenerator.CodeGenerators.Helpers; using TUnit.Core.SourceGenerator.CodeGenerators.Writers.Hooks; using TUnit.Core.SourceGenerator.Enums; using TUnit.Core.SourceGenerator.Extensions; @@ -191,11 +190,11 @@ private static string GetInterfaceType(string hookLevel) { return hookLevel switch { - "TUnit.Core.HookType.TestDiscovery" => "TUnit.Core.Interfaces.SourceGenerator.ITestDiscoveryHookSource", - "TUnit.Core.HookType.TestSession" => "TUnit.Core.Interfaces.SourceGenerator.ITestSessionHookSource", - "TUnit.Core.HookType.Assembly" => "TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource", - "TUnit.Core.HookType.Class" => "TUnit.Core.Interfaces.SourceGenerator.IClassHookSource", - "TUnit.Core.HookType.Test" => "TUnit.Core.Interfaces.SourceGenerator.ITestHookSource", + "TUnit.Core.HookType.TestDiscovery" => "global::TUnit.Core.Interfaces.SourceGenerator.ITestDiscoveryHookSource", + "TUnit.Core.HookType.TestSession" => "global::TUnit.Core.Interfaces.SourceGenerator.ITestSessionHookSource", + "TUnit.Core.HookType.Assembly" => "global::TUnit.Core.Interfaces.SourceGenerator.IAssemblyHookSource", + "TUnit.Core.HookType.Class" => "global::TUnit.Core.Interfaces.SourceGenerator.IClassHookSource", + "TUnit.Core.HookType.Test" => "global::TUnit.Core.Interfaces.SourceGenerator.ITestHookSource", _ => throw new ArgumentOutOfRangeException() }; } @@ -205,13 +204,13 @@ private static string GetReturnType(string hookLevel, HookLocationType hookLocat return hookLevel switch { "TUnit.Core.HookType.TestDiscovery" - when hookLocationType == HookLocationType.Before => "StaticHookMethod", - "TUnit.Core.HookType.TestDiscovery" => "StaticHookMethod", - "TUnit.Core.HookType.TestSession" => "StaticHookMethod", - "TUnit.Core.HookType.Assembly" => "StaticHookMethod", - "TUnit.Core.HookType.Class" => "StaticHookMethod", - "TUnit.Core.HookType.Test" when isEvery => "StaticHookMethod", - "TUnit.Core.HookType.Test" => "InstanceHookMethod", + when hookLocationType == HookLocationType.Before => "global::TUnit.Core.Hooks.StaticHookMethod", + "TUnit.Core.HookType.TestDiscovery" => "global::TUnit.Core.Hooks.StaticHookMethod", + "TUnit.Core.HookType.TestSession" => "global::TUnit.Core.Hooks.StaticHookMethod", + "TUnit.Core.HookType.Assembly" => "global::TUnit.Core.Hooks.StaticHookMethod", + "TUnit.Core.HookType.Class" => "global::TUnit.Core.Hooks.StaticHookMethod", + "TUnit.Core.HookType.Test" when isEvery => "global::TUnit.Core.Hooks.StaticHookMethod", + "TUnit.Core.HookType.Test" => "global::TUnit.Core.Hooks.InstanceHookMethod", _ => throw new ArgumentOutOfRangeException() }; } @@ -260,11 +259,4 @@ private static string GetMethodName(string hookLevel, HookLocationType hookLocat _ => throw new ArgumentOutOfRangeException() }; } - - private static bool IsPartOfCompilation(Compilation compilation, ITypeSymbol x) - { - var syntaxTree = x.DeclaringSyntaxReferences.FirstOrDefault()?.SyntaxTree; - - return syntaxTree is not null && compilation.ContainsSyntaxTree(syntaxTree); - } } \ No newline at end of file diff --git a/TUnit.Core.SourceGenerator/CodeGenerators/TestsGenerator.cs b/TUnit.Core.SourceGenerator/CodeGenerators/TestsGenerator.cs index cb670b82ce..2e38ed6859 100644 --- a/TUnit.Core.SourceGenerator/CodeGenerators/TestsGenerator.cs +++ b/TUnit.Core.SourceGenerator/CodeGenerators/TestsGenerator.cs @@ -109,13 +109,13 @@ private void GenerateTests(SourceProductionContext context, TestCollectionDataMo sourceBuilder.WriteLine(); sourceBuilder.WriteLine("[global::System.Diagnostics.StackTraceHidden]"); sourceBuilder.WriteLine("[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]"); - sourceBuilder.WriteLine($"file partial class {className} : TUnit.Core.Interfaces.SourceGenerator.ITestSource"); + sourceBuilder.WriteLine($"file partial class {className} : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource"); sourceBuilder.WriteLine("{"); sourceBuilder.WriteLine("[global::System.Runtime.CompilerServices.ModuleInitializer]"); sourceBuilder.WriteLine("public static void Initialise()"); sourceBuilder.WriteLine("{"); - sourceBuilder.WriteLine($"SourceRegistrar.Register(new {className}());"); + sourceBuilder.WriteLine($"global::TUnit.Core.SourceRegistrar.Register(new {className}());"); sourceBuilder.WriteLine("}"); sourceBuilder.WriteLine("public global::System.Collections.Generic.IReadOnlyList CollectTests(string sessionId)"); diff --git a/TUnit.Core.SourceGenerator/CodeGenerators/Writers/AttributeWriter.cs b/TUnit.Core.SourceGenerator/CodeGenerators/Writers/AttributeWriter.cs index 6c50b32c71..badc8e157a 100644 --- a/TUnit.Core.SourceGenerator/CodeGenerators/Writers/AttributeWriter.cs +++ b/TUnit.Core.SourceGenerator/CodeGenerators/Writers/AttributeWriter.cs @@ -1,6 +1,5 @@ using System.Collections.Immutable; using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using TUnit.Core.SourceGenerator.CodeGenerators.Helpers; using TUnit.Core.SourceGenerator.Extensions; diff --git a/TUnit.Core.SourceGenerator/CodeGenerators/Writers/FailedTestInitializationWriter.cs b/TUnit.Core.SourceGenerator/CodeGenerators/Writers/FailedTestInitializationWriter.cs index 04326d9dd6..a296d62850 100644 --- a/TUnit.Core.SourceGenerator/CodeGenerators/Writers/FailedTestInitializationWriter.cs +++ b/TUnit.Core.SourceGenerator/CodeGenerators/Writers/FailedTestInitializationWriter.cs @@ -1,5 +1,4 @@ -using TUnit.Core.SourceGenerator.Extensions; -using TUnit.Core.SourceGenerator.Models; +using TUnit.Core.SourceGenerator.Models; namespace TUnit.Core.SourceGenerator.CodeGenerators.Writers; @@ -10,7 +9,7 @@ public static void GenerateFailedTestCode(SourceCodeWriter sourceBuilder, { var testId = testSourceDataModel.TestId; - sourceBuilder.WriteLine("nodes.Add(new FailedInitializationTest"); + sourceBuilder.WriteLine("nodes.Add(new global::TUnit.Core.FailedInitializationTest"); sourceBuilder.WriteLine("{"); sourceBuilder.WriteLine($"TestId = $\"{testId}\","); sourceBuilder.WriteLine($"TestClass = typeof({testSourceDataModel.FullyQualifiedTypeName}),"); diff --git a/TUnit.Core.SourceGenerator/CodeGenerators/Writers/Hooks/AssemblyHooksWriter.cs b/TUnit.Core.SourceGenerator/CodeGenerators/Writers/Hooks/AssemblyHooksWriter.cs index ad301f8c83..4345deb353 100644 --- a/TUnit.Core.SourceGenerator/CodeGenerators/Writers/Hooks/AssemblyHooksWriter.cs +++ b/TUnit.Core.SourceGenerator/CodeGenerators/Writers/Hooks/AssemblyHooksWriter.cs @@ -1,5 +1,4 @@ -using System.Collections.Immutable; -using TUnit.Core.SourceGenerator.CodeGenerators.Helpers; +using TUnit.Core.SourceGenerator.CodeGenerators.Helpers; using TUnit.Core.SourceGenerator.Enums; using TUnit.Core.SourceGenerator.Extensions; using TUnit.Core.SourceGenerator.Models; diff --git a/TUnit.Core.SourceGenerator/Models/TestSourceDataModel.cs b/TUnit.Core.SourceGenerator/Models/TestSourceDataModel.cs index 39b7208f35..f2defc9ae0 100644 --- a/TUnit.Core.SourceGenerator/Models/TestSourceDataModel.cs +++ b/TUnit.Core.SourceGenerator/Models/TestSourceDataModel.cs @@ -1,5 +1,4 @@ -using Microsoft.CodeAnalysis; -using TUnit.Core.SourceGenerator.Extensions; +using TUnit.Core.SourceGenerator.Extensions; using TUnit.Core.SourceGenerator.Models.Arguments; namespace TUnit.Core.SourceGenerator.Models;