diff --git a/Directory.Packages.props b/Directory.Packages.props index 2a1c161ad7..dd472ddf2d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -83,9 +83,9 @@ - - - + + + diff --git a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet10_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet10_0.verified.txt index 7433164a90..9049945a09 100644 --- a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet10_0.verified.txt +++ b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet10_0.verified.txt @@ -73,6 +73,80 @@ public sealed class Bool_IsFalse_Assertion : Assertion } } +/// +/// Generated assertion for IsTrue +/// +public sealed class NullableBool_IsTrue_Assertion : Assertion +{ + public NullableBool_IsTrue_Assertion(AssertionContext context) + : base(context) + { + } + + protected override Task CheckAsync(EvaluationMetadata metadata) + { + var value = metadata.Value; + var exception = metadata.Exception; + + if (exception != null) + { + return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}")); + } + + if (value is null) + { + return Task.FromResult(AssertionResult.Failed("Actual value is null")); + } + + var result = value.IsTrue(); + return Task.FromResult(result + ? AssertionResult.Passed + : AssertionResult.Failed($"found {value}")); + } + + protected override string GetExpectation() + { + return "to be true"; + } +} + +/// +/// Generated assertion for IsFalse +/// +public sealed class NullableBool_IsFalse_Assertion : Assertion +{ + public NullableBool_IsFalse_Assertion(AssertionContext context) + : base(context) + { + } + + protected override Task CheckAsync(EvaluationMetadata metadata) + { + var value = metadata.Value; + var exception = metadata.Exception; + + if (exception != null) + { + return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}")); + } + + if (value is null) + { + return Task.FromResult(AssertionResult.Failed("Actual value is null")); + } + + var result = value.IsFalse(); + return Task.FromResult(result + ? AssertionResult.Passed + : AssertionResult.Failed($"found {value}")); + } + + protected override string GetExpectation() + { + return "to be false"; + } +} + public static partial class BooleanAssertionExtensions { /// @@ -93,6 +167,24 @@ public static partial class BooleanAssertionExtensions return new Bool_IsFalse_Assertion(source.Context); } + /// + /// Generated extension method for IsTrue + /// + public static NullableBool_IsTrue_Assertion IsTrue(this IAssertionSource source) + { + source.Context.ExpressionBuilder.Append(".IsTrue()"); + return new NullableBool_IsTrue_Assertion(source.Context); + } + + /// + /// Generated extension method for IsFalse + /// + public static NullableBool_IsFalse_Assertion IsFalse(this IAssertionSource source) + { + source.Context.ExpressionBuilder.Append(".IsFalse()"); + return new NullableBool_IsFalse_Assertion(source.Context); + } + } ] \ No newline at end of file diff --git a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet8_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet8_0.verified.txt index 7433164a90..9049945a09 100644 --- a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet8_0.verified.txt +++ b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet8_0.verified.txt @@ -73,6 +73,80 @@ public sealed class Bool_IsFalse_Assertion : Assertion } } +/// +/// Generated assertion for IsTrue +/// +public sealed class NullableBool_IsTrue_Assertion : Assertion +{ + public NullableBool_IsTrue_Assertion(AssertionContext context) + : base(context) + { + } + + protected override Task CheckAsync(EvaluationMetadata metadata) + { + var value = metadata.Value; + var exception = metadata.Exception; + + if (exception != null) + { + return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}")); + } + + if (value is null) + { + return Task.FromResult(AssertionResult.Failed("Actual value is null")); + } + + var result = value.IsTrue(); + return Task.FromResult(result + ? AssertionResult.Passed + : AssertionResult.Failed($"found {value}")); + } + + protected override string GetExpectation() + { + return "to be true"; + } +} + +/// +/// Generated assertion for IsFalse +/// +public sealed class NullableBool_IsFalse_Assertion : Assertion +{ + public NullableBool_IsFalse_Assertion(AssertionContext context) + : base(context) + { + } + + protected override Task CheckAsync(EvaluationMetadata metadata) + { + var value = metadata.Value; + var exception = metadata.Exception; + + if (exception != null) + { + return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}")); + } + + if (value is null) + { + return Task.FromResult(AssertionResult.Failed("Actual value is null")); + } + + var result = value.IsFalse(); + return Task.FromResult(result + ? AssertionResult.Passed + : AssertionResult.Failed($"found {value}")); + } + + protected override string GetExpectation() + { + return "to be false"; + } +} + public static partial class BooleanAssertionExtensions { /// @@ -93,6 +167,24 @@ public static partial class BooleanAssertionExtensions return new Bool_IsFalse_Assertion(source.Context); } + /// + /// Generated extension method for IsTrue + /// + public static NullableBool_IsTrue_Assertion IsTrue(this IAssertionSource source) + { + source.Context.ExpressionBuilder.Append(".IsTrue()"); + return new NullableBool_IsTrue_Assertion(source.Context); + } + + /// + /// Generated extension method for IsFalse + /// + public static NullableBool_IsFalse_Assertion IsFalse(this IAssertionSource source) + { + source.Context.ExpressionBuilder.Append(".IsFalse()"); + return new NullableBool_IsFalse_Assertion(source.Context); + } + } ] \ No newline at end of file diff --git a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet9_0.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet9_0.verified.txt index 7433164a90..9049945a09 100644 --- a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet9_0.verified.txt +++ b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.DotNet9_0.verified.txt @@ -73,6 +73,80 @@ public sealed class Bool_IsFalse_Assertion : Assertion } } +/// +/// Generated assertion for IsTrue +/// +public sealed class NullableBool_IsTrue_Assertion : Assertion +{ + public NullableBool_IsTrue_Assertion(AssertionContext context) + : base(context) + { + } + + protected override Task CheckAsync(EvaluationMetadata metadata) + { + var value = metadata.Value; + var exception = metadata.Exception; + + if (exception != null) + { + return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}")); + } + + if (value is null) + { + return Task.FromResult(AssertionResult.Failed("Actual value is null")); + } + + var result = value.IsTrue(); + return Task.FromResult(result + ? AssertionResult.Passed + : AssertionResult.Failed($"found {value}")); + } + + protected override string GetExpectation() + { + return "to be true"; + } +} + +/// +/// Generated assertion for IsFalse +/// +public sealed class NullableBool_IsFalse_Assertion : Assertion +{ + public NullableBool_IsFalse_Assertion(AssertionContext context) + : base(context) + { + } + + protected override Task CheckAsync(EvaluationMetadata metadata) + { + var value = metadata.Value; + var exception = metadata.Exception; + + if (exception != null) + { + return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}")); + } + + if (value is null) + { + return Task.FromResult(AssertionResult.Failed("Actual value is null")); + } + + var result = value.IsFalse(); + return Task.FromResult(result + ? AssertionResult.Passed + : AssertionResult.Failed($"found {value}")); + } + + protected override string GetExpectation() + { + return "to be false"; + } +} + public static partial class BooleanAssertionExtensions { /// @@ -93,6 +167,24 @@ public static partial class BooleanAssertionExtensions return new Bool_IsFalse_Assertion(source.Context); } + /// + /// Generated extension method for IsTrue + /// + public static NullableBool_IsTrue_Assertion IsTrue(this IAssertionSource source) + { + source.Context.ExpressionBuilder.Append(".IsTrue()"); + return new NullableBool_IsTrue_Assertion(source.Context); + } + + /// + /// Generated extension method for IsFalse + /// + public static NullableBool_IsFalse_Assertion IsFalse(this IAssertionSource source) + { + source.Context.ExpressionBuilder.Append(".IsFalse()"); + return new NullableBool_IsFalse_Assertion(source.Context); + } + } ] \ No newline at end of file diff --git a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.Net4_7.verified.txt b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.Net4_7.verified.txt index 7433164a90..9049945a09 100644 --- a/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.Net4_7.verified.txt +++ b/TUnit.Assertions.SourceGenerator.Tests/BooleanAssertionGeneratorTests.GeneratesBooleanAssertions.Net4_7.verified.txt @@ -73,6 +73,80 @@ public sealed class Bool_IsFalse_Assertion : Assertion } } +/// +/// Generated assertion for IsTrue +/// +public sealed class NullableBool_IsTrue_Assertion : Assertion +{ + public NullableBool_IsTrue_Assertion(AssertionContext context) + : base(context) + { + } + + protected override Task CheckAsync(EvaluationMetadata metadata) + { + var value = metadata.Value; + var exception = metadata.Exception; + + if (exception != null) + { + return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}")); + } + + if (value is null) + { + return Task.FromResult(AssertionResult.Failed("Actual value is null")); + } + + var result = value.IsTrue(); + return Task.FromResult(result + ? AssertionResult.Passed + : AssertionResult.Failed($"found {value}")); + } + + protected override string GetExpectation() + { + return "to be true"; + } +} + +/// +/// Generated assertion for IsFalse +/// +public sealed class NullableBool_IsFalse_Assertion : Assertion +{ + public NullableBool_IsFalse_Assertion(AssertionContext context) + : base(context) + { + } + + protected override Task CheckAsync(EvaluationMetadata metadata) + { + var value = metadata.Value; + var exception = metadata.Exception; + + if (exception != null) + { + return Task.FromResult(AssertionResult.Failed($"threw {exception.GetType().FullName}")); + } + + if (value is null) + { + return Task.FromResult(AssertionResult.Failed("Actual value is null")); + } + + var result = value.IsFalse(); + return Task.FromResult(result + ? AssertionResult.Passed + : AssertionResult.Failed($"found {value}")); + } + + protected override string GetExpectation() + { + return "to be false"; + } +} + public static partial class BooleanAssertionExtensions { /// @@ -93,6 +167,24 @@ public static partial class BooleanAssertionExtensions return new Bool_IsFalse_Assertion(source.Context); } + /// + /// Generated extension method for IsTrue + /// + public static NullableBool_IsTrue_Assertion IsTrue(this IAssertionSource source) + { + source.Context.ExpressionBuilder.Append(".IsTrue()"); + return new NullableBool_IsTrue_Assertion(source.Context); + } + + /// + /// Generated extension method for IsFalse + /// + public static NullableBool_IsFalse_Assertion IsFalse(this IAssertionSource source) + { + source.Context.ExpressionBuilder.Append(".IsFalse()"); + return new NullableBool_IsFalse_Assertion(source.Context); + } + } ] \ No newline at end of file diff --git a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt index e460936b0e..d08b347bec 100644 --- a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,11 +66,11 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T yield break; } } -internal static class ConcreteClass1_AssertClassName_ModuleInitializer_GUID +internal static class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), new ConcreteClass1_AssertClassName_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), new TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt index d707fe70a3..e65f62d62c 100644 --- a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,12 +68,12 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit. yield break; } } -internal static class ConcreteClass2_SecondTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new ConcreteClass2_SecondTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_TestSource()); } } @@ -85,7 +85,7 @@ internal static class ConcreteClass2_SecondTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -149,12 +149,12 @@ internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::T yield break; } } -internal static class ConcreteClass2_AssertClassName_ModuleInitializer_GUID +internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new ConcreteClass2_AssertClassName_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource()); } } @@ -166,89 +166,7 @@ internal static class ConcreteClass2_AssertClassName_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource -{ - public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) - { - var metadata = new global::TUnit.Core.TestMetadata - { - TestName = "SecondTest", - TestClassType = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TestMethodName = "SecondTest", - Dependencies = global::System.Array.Empty(), - AttributeFactory = () => - [ - new global::TUnit.Core.TestAttribute(), - new global::TUnit.Core.InheritsTestsAttribute(), - new global::TUnit.Core.InheritsTestsAttribute() - ], - DataSources = global::System.Array.Empty(), - ClassDataSources = global::System.Array.Empty(), - PropertyDataSources = global::System.Array.Empty(), - PropertyInjections = global::System.Array.Empty(), - InheritanceDepth = 0, - FilePath = @"", - LineNumber = 3, - MethodMetadata = new global::TUnit.Core.MethodMetadata - { - Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), - Name = "SecondTest", - GenericTypeCount = 0, - ReturnType = typeof(void), - ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), - Parameters = global::System.Array.Empty(), - Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => - { - var classMetadata = new global::TUnit.Core.ClassMetadata - { - Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), - Name = "ConcreteClass2", - Namespace = "TUnit.TestProject.AbstractTests", - Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), - Parameters = global::System.Array.Empty(), - Properties = global::System.Array.Empty(), - Parent = null - }; - foreach (var prop in classMetadata.Properties) - { - prop.ClassMetadata = classMetadata; - prop.ContainingTypeMetadata = classMetadata; - } - return classMetadata; - }) - }, - InstanceFactory = (typeArgs, args) => new global::TUnit.TestProject.AbstractTests.ConcreteClass2(), - InvokeTypedTest = async (instance, args, cancellationToken) => - { - instance.SecondTest(); - await global::System.Threading.Tasks.Task.CompletedTask; - }, - }; - metadata.UseRuntimeDataGeneration(testSessionId); - yield return metadata; - yield break; - } -} -internal static class ConcreteClass2_SecondTest_ModuleInitializer_GUID -{ - [global::System.Runtime.CompilerServices.ModuleInitializer] - public static void Initialize() - { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new ConcreteClass2_SecondTest_TestSource_GUID()); - } -} - - -// ===== FILE SEPARATOR ===== - -// -#pragma warning disable - -#nullable enable -namespace TUnit.Generated; -internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -311,11 +229,11 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T yield break; } } -internal static class ConcreteClass1_AssertClassName_ModuleInitializer_GUID +internal static class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), new ConcreteClass1_AssertClassName_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), new TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt index 6bdfb18c72..ed931b1fba 100644 --- a/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class CleanupTests_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -65,12 +65,12 @@ internal sealed class CleanupTests_Test1_TestSource_GUID : global::TUnit.Core.In yield break; } } -internal static class CleanupTests_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_AfterTests_CleanupTests_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new CleanupTests_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource()); } } @@ -82,7 +82,7 @@ internal static class CleanupTests_Test1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class CleanupTests_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -144,11 +144,11 @@ internal sealed class CleanupTests_Test2_TestSource_GUID : global::TUnit.Core.In yield break; } } -internal static class CleanupTests_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_AfterTests_CleanupTests_Test2_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new CleanupTests_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt index 6bdfb18c72..ed931b1fba 100644 --- a/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class CleanupTests_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -65,12 +65,12 @@ internal sealed class CleanupTests_Test1_TestSource_GUID : global::TUnit.Core.In yield break; } } -internal static class CleanupTests_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_AfterTests_CleanupTests_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new CleanupTests_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource()); } } @@ -82,7 +82,7 @@ internal static class CleanupTests_Test1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class CleanupTests_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -144,11 +144,11 @@ internal sealed class CleanupTests_Test2_TestSource_GUID : global::TUnit.Core.In yield break; } } -internal static class CleanupTests_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_AfterTests_CleanupTests_Test2_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new CleanupTests_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/AotConverterGeneratorTests.GeneratesCode.verified.txt b/TUnit.Core.SourceGenerator.Tests/AotConverterGeneratorTests.GeneratesCode.verified.txt deleted file mode 100644 index 427afed554..0000000000 --- a/TUnit.Core.SourceGenerator.Tests/AotConverterGeneratorTests.GeneratesCode.verified.txt +++ /dev/null @@ -1,1270 +0,0 @@ -// -#pragma warning disable - -#nullable enable -using System; -using TUnit.Core.Converters; -namespace TUnit.Generated; -internal sealed class AotConverter_0 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.AllDataSourcesCombinedTests.DataSource1); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.AllDataSourcesCombinedTests.DataSource1 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_1 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.AllDataSourcesCombinedTests.DataSource2); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.AllDataSourcesCombinedTests.DataSource2 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_2 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.AllDataSourcesCombinedTests.DataSource3); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.AllDataSourcesCombinedTests.DataSource3 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_3 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.AllDataSourcesCombinedTestsVerification.DataSource1); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.AllDataSourcesCombinedTestsVerification.DataSource1 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_4 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.AllDataSourcesCombinedTestsVerification.DataSource2); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.AllDataSourcesCombinedTestsVerification.DataSource2 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_5 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.AllDataSourcesCombinedTestsVerification.DataSource3); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.AllDataSourcesCombinedTestsVerification.DataSource3 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_6 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.ArgumentsWithClassDataSourceTests.IntDataSource1); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.ArgumentsWithClassDataSourceTests.IntDataSource1 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_7 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.ArgumentsWithClassDataSourceTests.IntDataSource2); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.ArgumentsWithClassDataSourceTests.IntDataSource2 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_8 : IAotConverter -{ - public Type SourceType => typeof(int); - public Type TargetType => typeof(global::TUnit.TestProject.ExplicitInteger); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.ExplicitInteger targetTypedValue) - { - return targetTypedValue; - } - if (value is int sourceTypedValue) - { - return (global::TUnit.TestProject.ExplicitInteger)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_9 : IAotConverter -{ - public Type SourceType => typeof(int); - public Type TargetType => typeof(global::TUnit.TestProject.ImplicitInteger); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.ImplicitInteger targetTypedValue) - { - return targetTypedValue; - } - if (value is int sourceTypedValue) - { - return (global::TUnit.TestProject.ImplicitInteger)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_10 : IAotConverter -{ - public Type SourceType => typeof(byte); - public Type TargetType => typeof(byte?); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is byte targetTypedValue) - { - return targetTypedValue; - } - if (value is byte sourceTypedValue) - { - return (byte?)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_11 : IAotConverter -{ - public Type SourceType => typeof(byte?); - public Type TargetType => typeof(byte); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is byte targetTypedValue) - { - return targetTypedValue; - } - if (value is byte sourceTypedValue) - { - return (byte)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_12 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.ClassDataSourceEnumerableTest.EnumerableDataSource); - public Type TargetType => typeof(string); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is string targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.ClassDataSourceEnumerableTest.EnumerableDataSource sourceTypedValue) - { - return (string)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_13 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.ClassDataSourceWithMethodDataSourceTests.DataSource1); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.ClassDataSourceWithMethodDataSourceTests.DataSource1 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_14 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.ClassDataSourceWithMethodDataSourceTests.DataSource2); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.ClassDataSourceWithMethodDataSourceTests.DataSource2 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_15 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.ClassDataSourceWithMethodDataSourceTests.DataSource3); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.ClassDataSourceWithMethodDataSourceTests.DataSource3 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_16 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.ComprehensiveCountTest.ClassData); - public Type TargetType => typeof(string); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is string targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.ComprehensiveCountTest.ClassData sourceTypedValue) - { - return (string)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_17 : IAotConverter -{ - public Type SourceType => typeof(bool); - public Type TargetType => typeof(bool?); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is bool targetTypedValue) - { - return targetTypedValue; - } - if (value is bool sourceTypedValue) - { - return (bool?)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_18 : IAotConverter -{ - public Type SourceType => typeof(bool?); - public Type TargetType => typeof(bool); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is bool targetTypedValue) - { - return targetTypedValue; - } - if (value is bool sourceTypedValue) - { - return (bool)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_19 : IAotConverter -{ - public Type SourceType => typeof(byte); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is byte sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_20 : IAotConverter -{ - public Type SourceType => typeof(sbyte); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is sbyte sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_21 : IAotConverter -{ - public Type SourceType => typeof(short); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is short sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_22 : IAotConverter -{ - public Type SourceType => typeof(ushort); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is ushort sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_23 : IAotConverter -{ - public Type SourceType => typeof(char); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is char sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_24 : IAotConverter -{ - public Type SourceType => typeof(int); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is int sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_25 : IAotConverter -{ - public Type SourceType => typeof(uint); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is uint sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_26 : IAotConverter -{ - public Type SourceType => typeof(long); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is long sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_27 : IAotConverter -{ - public Type SourceType => typeof(ulong); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is ulong sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_28 : IAotConverter -{ - public Type SourceType => typeof(float); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is float sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_29 : IAotConverter -{ - public Type SourceType => typeof(double); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is double sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_30 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(byte); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is byte targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (byte)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_31 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(sbyte); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is sbyte targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (sbyte)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_32 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(char); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is char targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (char)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_33 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(short); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is short targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (short)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_34 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(ushort); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is ushort targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (ushort)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_35 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_36 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(uint); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is uint targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (uint)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_37 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(long); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is long targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (long)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_38 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(ulong); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is ulong targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (ulong)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_39 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(float); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is float targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (float)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_40 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(double); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is double targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (double)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_41 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.TestEnum); - public Type TargetType => typeof(global::TUnit.TestProject.TestEnum?); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.TestEnum targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.TestEnum sourceTypedValue) - { - return (global::TUnit.TestProject.TestEnum?)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_42 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.TestEnum?); - public Type TargetType => typeof(global::TUnit.TestProject.TestEnum); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.TestEnum targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.TestEnum sourceTypedValue) - { - return (global::TUnit.TestProject.TestEnum)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_43 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedDataSourceBugTest.ClassData1); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedDataSourceBugTest.ClassData1 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_44 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedDataSourceBugTest.ClassData2); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedDataSourceBugTest.ClassData2 sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_45 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedMatrixTests.Enum4); - public Type TargetType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion1); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion1 targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedMatrixTests.Enum4 sourceTypedValue) - { - return (global::TUnit.TestProject.MixedMatrixTestsUnion1)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_46 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion1); - public Type TargetType => typeof(global::TUnit.TestProject.MixedMatrixTests.Enum4); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.MixedMatrixTests.Enum4 targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion1 sourceTypedValue) - { - return (global::TUnit.TestProject.MixedMatrixTests.Enum4)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_47 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedMatrixTests.Enum5); - public Type TargetType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion1); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion1 targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedMatrixTests.Enum5 sourceTypedValue) - { - return (global::TUnit.TestProject.MixedMatrixTestsUnion1)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_48 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion1); - public Type TargetType => typeof(global::TUnit.TestProject.MixedMatrixTests.Enum5); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.MixedMatrixTests.Enum5 targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion1 sourceTypedValue) - { - return (global::TUnit.TestProject.MixedMatrixTests.Enum5)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_49 : IAotConverter -{ - public Type SourceType => typeof(string); - public Type TargetType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion1); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion1 targetTypedValue) - { - return targetTypedValue; - } - if (value is string sourceTypedValue) - { - return (global::TUnit.TestProject.MixedMatrixTestsUnion1)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_50 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion1); - public Type TargetType => typeof(string); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is string targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion1 sourceTypedValue) - { - return (string)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_51 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedMatrixTests.Enum4); - public Type TargetType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion2); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion2 targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedMatrixTests.Enum4 sourceTypedValue) - { - return (global::TUnit.TestProject.MixedMatrixTestsUnion2)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_52 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion2); - public Type TargetType => typeof(global::TUnit.TestProject.MixedMatrixTests.Enum4); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.MixedMatrixTests.Enum4 targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion2 sourceTypedValue) - { - return (global::TUnit.TestProject.MixedMatrixTests.Enum4)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_53 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedMatrixTests.Enum5); - public Type TargetType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion2); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion2 targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedMatrixTests.Enum5 sourceTypedValue) - { - return (global::TUnit.TestProject.MixedMatrixTestsUnion2)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_54 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion2); - public Type TargetType => typeof(global::TUnit.TestProject.MixedMatrixTests.Enum5); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.MixedMatrixTests.Enum5 targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion2 sourceTypedValue) - { - return (global::TUnit.TestProject.MixedMatrixTests.Enum5)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_55 : IAotConverter -{ - public Type SourceType => typeof(string); - public Type TargetType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion2); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion2 targetTypedValue) - { - return targetTypedValue; - } - if (value is string sourceTypedValue) - { - return (global::TUnit.TestProject.MixedMatrixTestsUnion2)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_56 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.MixedMatrixTestsUnion2); - public Type TargetType => typeof(string); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is string targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.MixedMatrixTestsUnion2 sourceTypedValue) - { - return (string)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_57 : IAotConverter -{ - public Type SourceType => typeof(decimal); - public Type TargetType => typeof(decimal?); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (decimal?)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_58 : IAotConverter -{ - public Type SourceType => typeof(decimal?); - public Type TargetType => typeof(decimal); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is decimal targetTypedValue) - { - return targetTypedValue; - } - if (value is decimal sourceTypedValue) - { - return (decimal)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_59 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.TestCountVerificationTests.TestDataSource); - public Type TargetType => typeof(int); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is int targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.TestCountVerificationTests.TestDataSource sourceTypedValue) - { - return (int)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_60 : IAotConverter -{ - public Type SourceType => typeof(int); - public Type TargetType => typeof(global::TUnit.TestProject.Bugs._2757.Foo); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.Bugs._2757.Foo targetTypedValue) - { - return targetTypedValue; - } - if (value is int sourceTypedValue) - { - return (global::TUnit.TestProject.Bugs._2757.Foo)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_61 : IAotConverter -{ - public Type SourceType => typeof(global::System.ValueTuple); - public Type TargetType => typeof(global::TUnit.TestProject.Bugs._2798.Foo); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.Bugs._2798.Foo targetTypedValue) - { - return targetTypedValue; - } - if (value is global::System.ValueTuple sourceTypedValue) - { - return (global::TUnit.TestProject.Bugs._2798.Foo)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_62 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.Bugs._3185.FlagMock); - public Type TargetType => typeof(global::TUnit.TestProject.Bugs._3185.FlagMock?); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.Bugs._3185.FlagMock targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.Bugs._3185.FlagMock sourceTypedValue) - { - return (global::TUnit.TestProject.Bugs._3185.FlagMock?)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_63 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.Bugs._3185.FlagMock?); - public Type TargetType => typeof(global::TUnit.TestProject.Bugs._3185.FlagMock); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.Bugs._3185.FlagMock targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.Bugs._3185.FlagMock sourceTypedValue) - { - return (global::TUnit.TestProject.Bugs._3185.FlagMock)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_64 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.Bugs._3185.RegularEnum); - public Type TargetType => typeof(global::TUnit.TestProject.Bugs._3185.RegularEnum?); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.Bugs._3185.RegularEnum targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.Bugs._3185.RegularEnum sourceTypedValue) - { - return (global::TUnit.TestProject.Bugs._3185.RegularEnum?)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal sealed class AotConverter_65 : IAotConverter -{ - public Type SourceType => typeof(global::TUnit.TestProject.Bugs._3185.RegularEnum?); - public Type TargetType => typeof(global::TUnit.TestProject.Bugs._3185.RegularEnum); - public object? Convert(object? value) - { - if (value == null) return null; - if (value is global::TUnit.TestProject.Bugs._3185.RegularEnum targetTypedValue) - { - return targetTypedValue; - } - if (value is global::TUnit.TestProject.Bugs._3185.RegularEnum sourceTypedValue) - { - return (global::TUnit.TestProject.Bugs._3185.RegularEnum)sourceTypedValue; - } - return value; // Return original value if type doesn't match - } -} -internal static class AotConverterRegistration -{ - [global::System.Runtime.CompilerServices.ModuleInitializer] - [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA2255:The 'ModuleInitializer' attribute should not be used in libraries", - Justification = "Test framework needs to register AOT converters for conversion operators")] - public static void Initialize() - { - AotConverterRegistry.Register(new AotConverter_0()); - AotConverterRegistry.Register(new AotConverter_1()); - AotConverterRegistry.Register(new AotConverter_2()); - AotConverterRegistry.Register(new AotConverter_3()); - AotConverterRegistry.Register(new AotConverter_4()); - AotConverterRegistry.Register(new AotConverter_5()); - AotConverterRegistry.Register(new AotConverter_6()); - AotConverterRegistry.Register(new AotConverter_7()); - AotConverterRegistry.Register(new AotConverter_8()); - AotConverterRegistry.Register(new AotConverter_9()); - AotConverterRegistry.Register(new AotConverter_10()); - AotConverterRegistry.Register(new AotConverter_11()); - AotConverterRegistry.Register(new AotConverter_12()); - AotConverterRegistry.Register(new AotConverter_13()); - AotConverterRegistry.Register(new AotConverter_14()); - AotConverterRegistry.Register(new AotConverter_15()); - AotConverterRegistry.Register(new AotConverter_16()); - AotConverterRegistry.Register(new AotConverter_17()); - AotConverterRegistry.Register(new AotConverter_18()); - AotConverterRegistry.Register(new AotConverter_19()); - AotConverterRegistry.Register(new AotConverter_20()); - AotConverterRegistry.Register(new AotConverter_21()); - AotConverterRegistry.Register(new AotConverter_22()); - AotConverterRegistry.Register(new AotConverter_23()); - AotConverterRegistry.Register(new AotConverter_24()); - AotConverterRegistry.Register(new AotConverter_25()); - AotConverterRegistry.Register(new AotConverter_26()); - AotConverterRegistry.Register(new AotConverter_27()); - AotConverterRegistry.Register(new AotConverter_28()); - AotConverterRegistry.Register(new AotConverter_29()); - AotConverterRegistry.Register(new AotConverter_30()); - AotConverterRegistry.Register(new AotConverter_31()); - AotConverterRegistry.Register(new AotConverter_32()); - AotConverterRegistry.Register(new AotConverter_33()); - AotConverterRegistry.Register(new AotConverter_34()); - AotConverterRegistry.Register(new AotConverter_35()); - AotConverterRegistry.Register(new AotConverter_36()); - AotConverterRegistry.Register(new AotConverter_37()); - AotConverterRegistry.Register(new AotConverter_38()); - AotConverterRegistry.Register(new AotConverter_39()); - AotConverterRegistry.Register(new AotConverter_40()); - AotConverterRegistry.Register(new AotConverter_41()); - AotConverterRegistry.Register(new AotConverter_42()); - AotConverterRegistry.Register(new AotConverter_43()); - AotConverterRegistry.Register(new AotConverter_44()); - AotConverterRegistry.Register(new AotConverter_45()); - AotConverterRegistry.Register(new AotConverter_46()); - AotConverterRegistry.Register(new AotConverter_47()); - AotConverterRegistry.Register(new AotConverter_48()); - AotConverterRegistry.Register(new AotConverter_49()); - AotConverterRegistry.Register(new AotConverter_50()); - AotConverterRegistry.Register(new AotConverter_51()); - AotConverterRegistry.Register(new AotConverter_52()); - AotConverterRegistry.Register(new AotConverter_53()); - AotConverterRegistry.Register(new AotConverter_54()); - AotConverterRegistry.Register(new AotConverter_55()); - AotConverterRegistry.Register(new AotConverter_56()); - AotConverterRegistry.Register(new AotConverter_57()); - AotConverterRegistry.Register(new AotConverter_58()); - AotConverterRegistry.Register(new AotConverter_59()); - AotConverterRegistry.Register(new AotConverter_60()); - AotConverterRegistry.Register(new AotConverter_61()); - AotConverterRegistry.Register(new AotConverter_62()); - AotConverterRegistry.Register(new AotConverter_63()); - AotConverterRegistry.Register(new AotConverter_64()); - AotConverterRegistry.Register(new AotConverter_65()); - } -} diff --git a/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt index 2a71df29b3..ab7a73d1a9 100644 --- a/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ArgsAsArrayTests_Params_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ArgsAsArrayTests_Params__string___TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -103,12 +103,12 @@ internal sealed class ArgsAsArrayTests_Params_TestSource_GUID : global::TUnit.Co yield break; } } -internal static class ArgsAsArrayTests_Params_ModuleInitializer_GUID +internal static class TUnit_TestProject_ArgsAsArrayTests_Params__string___ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new ArgsAsArrayTests_Params_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new TUnit_TestProject_ArgsAsArrayTests_Params__string___TestSource()); } } @@ -120,7 +120,7 @@ internal static class ArgsAsArrayTests_Params_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ArgsAsArrayTests_ParamsEnumerable_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ArgsAsArrayTests_ParamsEnumerable__IEnumerable_string__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -220,12 +220,12 @@ internal sealed class ArgsAsArrayTests_ParamsEnumerable_TestSource_GUID : global yield break; } } -internal static class ArgsAsArrayTests_ParamsEnumerable_ModuleInitializer_GUID +internal static class TUnit_TestProject_ArgsAsArrayTests_ParamsEnumerable__IEnumerable_string__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new ArgsAsArrayTests_ParamsEnumerable_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new TUnit_TestProject_ArgsAsArrayTests_ParamsEnumerable__IEnumerable_string__TestSource()); } } @@ -237,7 +237,7 @@ internal static class ArgsAsArrayTests_ParamsEnumerable_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ArgsAsArrayTests_Following_Non_Params_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ArgsAsArrayTests_Following_Non_Params__int_IEnumerable_string__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -344,11 +344,11 @@ internal sealed class ArgsAsArrayTests_Following_Non_Params_TestSource_GUID : gl yield break; } } -internal static class ArgsAsArrayTests_Following_Non_Params_ModuleInitializer_GUID +internal static class TUnit_TestProject_ArgsAsArrayTests_Following_Non_Params__int_IEnumerable_string__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new ArgsAsArrayTests_Following_Non_Params_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new TUnit_TestProject_ArgsAsArrayTests_Following_Non_Params__int_IEnumerable_string__TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt index c8256408ae..1064d7160c 100644 --- a/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ArgumentWithImplicitConverterTests_Explicit_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ArgumentWithImplicitConverterTests_Explicit__ExplicitInteger_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -88,12 +88,12 @@ internal sealed class ArgumentWithImplicitConverterTests_Explicit_TestSource_GUI yield break; } } -internal static class ArgumentWithImplicitConverterTests_Explicit_ModuleInitializer_GUID +internal static class TUnit_TestProject_ArgumentWithImplicitConverterTests_Explicit__ExplicitInteger_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests), new ArgumentWithImplicitConverterTests_Explicit_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests), new TUnit_TestProject_ArgumentWithImplicitConverterTests_Explicit__ExplicitInteger_TestSource()); } } @@ -105,7 +105,7 @@ internal static class ArgumentWithImplicitConverterTests_Explicit_ModuleInitiali #nullable enable namespace TUnit.Generated; -internal sealed class ArgumentWithImplicitConverterTests_Implicit_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ArgumentWithImplicitConverterTests_Implicit__ImplicitInteger_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -190,11 +190,11 @@ internal sealed class ArgumentWithImplicitConverterTests_Implicit_TestSource_GUI yield break; } } -internal static class ArgumentWithImplicitConverterTests_Implicit_ModuleInitializer_GUID +internal static class TUnit_TestProject_ArgumentWithImplicitConverterTests_Implicit__ImplicitInteger_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests), new ArgumentWithImplicitConverterTests_Implicit_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests), new TUnit_TestProject_ArgumentWithImplicitConverterTests_Implicit__ImplicitInteger_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt index a44a02a2f0..ebe1796e42 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt @@ -15,8 +15,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase1_AfterAll1_After_Assembly_GUID; -internal static class AssemblyBase1_AfterAll1_After_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyBase1_AfterAll1_After_Assembly; +internal static class TUnit_TestProject_AfterTests_AssemblyBase1_AfterAll1_After_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -91,8 +91,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase1_AfterEach1_After_Test_GUID; -internal static class AssemblyBase1_AfterEach1_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyBase1_AfterEach1_After_Test; +internal static class TUnit_TestProject_AfterTests_AssemblyBase1_AfterEach1_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -166,8 +166,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase2_AfterAll2_After_Assembly_GUID; -internal static class AssemblyBase2_AfterAll2_After_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyBase2_AfterAll2_After_Assembly; +internal static class TUnit_TestProject_AfterTests_AssemblyBase2_AfterAll2_After_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -242,8 +242,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase2_AfterEach2_After_Test_GUID; -internal static class AssemblyBase2_AfterEach2_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyBase2_AfterEach2_After_Test; +internal static class TUnit_TestProject_AfterTests_AssemblyBase2_AfterEach2_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -317,8 +317,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase3_AfterAll3_After_Assembly_GUID; -internal static class AssemblyBase3_AfterAll3_After_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyBase3_AfterAll3_After_Assembly; +internal static class TUnit_TestProject_AfterTests_AssemblyBase3_AfterAll3_After_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -393,8 +393,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase3_AfterEach3_After_Test_GUID; -internal static class AssemblyBase3_AfterEach3_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyBase3_AfterEach3_After_Test; +internal static class TUnit_TestProject_AfterTests_AssemblyBase3_AfterEach3_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -468,8 +468,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyCleanupTests_AfterAllCleanUp_After_Assembly_GUID; -internal static class AssemblyCleanupTests_AfterAllCleanUp_After_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyCleanupTests_AfterAllCleanUp_After_Assembly; +internal static class TUnit_TestProject_AfterTests_AssemblyCleanupTests_AfterAllCleanUp_After_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -544,8 +544,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyCleanupTests_AfterAllCleanUpWithContext_After_Assembly_GUID; -internal static class AssemblyCleanupTests_AfterAllCleanUpWithContext_After_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyCleanupTests_AfterAllCleanUpWithContext__AssemblyHookContext_After_Assembly; +internal static class TUnit_TestProject_AfterTests_AssemblyCleanupTests_AfterAllCleanUpWithContext__AssemblyHookContext_After_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -629,8 +629,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyCleanupTests_AfterAllCleanUp2_After_Assembly_GUID; -internal static class AssemblyCleanupTests_AfterAllCleanUp2_After_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyCleanupTests_AfterAllCleanUp2_After_Assembly; +internal static class TUnit_TestProject_AfterTests_AssemblyCleanupTests_AfterAllCleanUp2_After_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -705,8 +705,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyCleanupTests_AfterAllCleanUpWithContextAndToken_After_Assembly_GUID; -internal static class AssemblyCleanupTests_AfterAllCleanUpWithContextAndToken_After_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyCleanupTests_AfterAllCleanUpWithContextAndToken__AssemblyHookContext_CancellationToken_After_Assembly; +internal static class TUnit_TestProject_AfterTests_AssemblyCleanupTests_AfterAllCleanUpWithContextAndToken__AssemblyHookContext_CancellationToken_After_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -797,8 +797,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyCleanupTests_Cleanup_After_Test_GUID; -internal static class AssemblyCleanupTests_Cleanup_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyCleanupTests_Cleanup_After_Test; +internal static class TUnit_TestProject_AfterTests_AssemblyCleanupTests_Cleanup_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -872,8 +872,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyCleanupTests_Cleanup_After_Test_GUID; -internal static class AssemblyCleanupTests_Cleanup_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyCleanupTests_Cleanup__CancellationToken_After_Test; +internal static class TUnit_TestProject_AfterTests_AssemblyCleanupTests_Cleanup__CancellationToken_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -956,8 +956,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyCleanupTests_CleanupWithContext_After_Test_GUID; -internal static class AssemblyCleanupTests_CleanupWithContext_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyCleanupTests_CleanupWithContext__TestContext_After_Test; +internal static class TUnit_TestProject_AfterTests_AssemblyCleanupTests_CleanupWithContext__TestContext_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -1040,8 +1040,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyCleanupTests_CleanupWithContext_After_Test_GUID; -internal static class AssemblyCleanupTests_CleanupWithContext_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_AssemblyCleanupTests_CleanupWithContext__TestContext_CancellationToken_After_Test; +internal static class TUnit_TestProject_AfterTests_AssemblyCleanupTests_CleanupWithContext__TestContext_CancellationToken_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() diff --git a/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt index fcbdf1b643..5338510711 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt @@ -15,8 +15,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase1_BeforeAll1_Before_Assembly_GUID; -internal static class AssemblyBase1_BeforeAll1_Before_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblyBase1_BeforeAll1_Before_Assembly; +internal static class TUnit_TestProject_BeforeTests_AssemblyBase1_BeforeAll1_Before_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -91,8 +91,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase1_BeforeEach1_Before_Test_GUID; -internal static class AssemblyBase1_BeforeEach1_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblyBase1_BeforeEach1_Before_Test; +internal static class TUnit_TestProject_BeforeTests_AssemblyBase1_BeforeEach1_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -166,8 +166,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase2_BeforeAll2_Before_Assembly_GUID; -internal static class AssemblyBase2_BeforeAll2_Before_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblyBase2_BeforeAll2_Before_Assembly; +internal static class TUnit_TestProject_BeforeTests_AssemblyBase2_BeforeAll2_Before_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -242,8 +242,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase2_BeforeEach2_Before_Test_GUID; -internal static class AssemblyBase2_BeforeEach2_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblyBase2_BeforeEach2_Before_Test; +internal static class TUnit_TestProject_BeforeTests_AssemblyBase2_BeforeEach2_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -317,8 +317,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase3_BeforeAll3_Before_Assembly_GUID; -internal static class AssemblyBase3_BeforeAll3_Before_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblyBase3_BeforeAll3_Before_Assembly; +internal static class TUnit_TestProject_BeforeTests_AssemblyBase3_BeforeAll3_Before_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -393,8 +393,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblyBase3_BeforeEach3_Before_Test_GUID; -internal static class AssemblyBase3_BeforeEach3_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblyBase3_BeforeEach3_Before_Test; +internal static class TUnit_TestProject_BeforeTests_AssemblyBase3_BeforeEach3_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -468,8 +468,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblySetupTests_BeforeAllSetUp_Before_Assembly_GUID; -internal static class AssemblySetupTests_BeforeAllSetUp_Before_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblySetupTests_BeforeAllSetUp_Before_Assembly; +internal static class TUnit_TestProject_BeforeTests_AssemblySetupTests_BeforeAllSetUp_Before_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -544,8 +544,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblySetupTests_BeforeAllSetUpWithContext_Before_Assembly_GUID; -internal static class AssemblySetupTests_BeforeAllSetUpWithContext_Before_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblySetupTests_BeforeAllSetUpWithContext__AssemblyHookContext_Before_Assembly; +internal static class TUnit_TestProject_BeforeTests_AssemblySetupTests_BeforeAllSetUpWithContext__AssemblyHookContext_Before_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -629,8 +629,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblySetupTests_BeforeAllSetUp2_Before_Assembly_GUID; -internal static class AssemblySetupTests_BeforeAllSetUp2_Before_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblySetupTests_BeforeAllSetUp2_Before_Assembly; +internal static class TUnit_TestProject_BeforeTests_AssemblySetupTests_BeforeAllSetUp2_Before_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -705,8 +705,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblySetupTests_BeforeAllSetUpWithContext_Before_Assembly_GUID; -internal static class AssemblySetupTests_BeforeAllSetUpWithContext_Before_Assembly_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblySetupTests_BeforeAllSetUpWithContext__AssemblyHookContext_CancellationToken_Before_Assembly; +internal static class TUnit_TestProject_BeforeTests_AssemblySetupTests_BeforeAllSetUpWithContext__AssemblyHookContext_CancellationToken_Before_AssemblyInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -797,8 +797,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblySetupTests_Setup_Before_Test_GUID; -internal static class AssemblySetupTests_Setup_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblySetupTests_Setup_Before_Test; +internal static class TUnit_TestProject_BeforeTests_AssemblySetupTests_Setup_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -872,8 +872,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblySetupTests_Setup_Before_Test_GUID; -internal static class AssemblySetupTests_Setup_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblySetupTests_Setup__CancellationToken_Before_Test; +internal static class TUnit_TestProject_BeforeTests_AssemblySetupTests_Setup__CancellationToken_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -956,8 +956,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblySetupTests_SetupWithContext_Before_Test_GUID; -internal static class AssemblySetupTests_SetupWithContext_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblySetupTests_SetupWithContext__TestContext_Before_Test; +internal static class TUnit_TestProject_BeforeTests_AssemblySetupTests_SetupWithContext__TestContext_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -1040,8 +1040,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.AssemblySetupTests_SetupWithContext_Before_Test_GUID; -internal static class AssemblySetupTests_SetupWithContext_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_AssemblySetupTests_SetupWithContext__TestContext_CancellationToken_Before_Test; +internal static class TUnit_TestProject_BeforeTests_AssemblySetupTests_SetupWithContext__TestContext_CancellationToken_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() diff --git a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet10_0.verified.txt index a1305087b5..1e53215ffc 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet10_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet8_0.verified.txt index a1305087b5..1e53215ffc 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet8_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet9_0.verified.txt index a1305087b5..1e53215ffc 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet9_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.Net4_7.verified.txt index a2665445d5..3e33e83805 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.Net4_7.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt index ac39a7b520..a3a6d48f59 100644 --- a/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_SingleValue_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_SingleValue__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -106,12 +106,12 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Sin yield break; } } -internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_SingleValue_ModuleInitializer_GUID +internal static class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_SingleValue__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_SingleValue_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_SingleValue__int_TestSource()); } } @@ -123,7 +123,7 @@ internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Sin #nullable enable namespace TUnit.Generated; -internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Tuples_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Tuples__int_string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -233,12 +233,12 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Tup yield break; } } -internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Tuples_ModuleInitializer_GUID +internal static class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Tuples__int_string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Tuples_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Tuples__int_string_TestSource()); } } @@ -250,7 +250,7 @@ internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Tup #nullable enable namespace TUnit.Generated; -internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Enumerable_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Enumerable__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -353,12 +353,12 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Enu yield break; } } -internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Enumerable_ModuleInitializer_GUID +internal static class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Enumerable__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Enumerable_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Enumerable__int_TestSource()); } } @@ -370,7 +370,7 @@ internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Enu #nullable enable namespace TUnit.Generated; -internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Func_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Func__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -473,12 +473,12 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Fun yield break; } } -internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Func_ModuleInitializer_GUID +internal static class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Func__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Func_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Func__int_TestSource()); } } @@ -490,7 +490,7 @@ internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Fun #nullable enable namespace TUnit.Generated; -internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_WithArguments_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_WithArguments__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -593,12 +593,12 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Wit yield break; } } -internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_WithArguments_ModuleInitializer_GUID +internal static class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_WithArguments__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_WithArguments_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_WithArguments__int_TestSource()); } } @@ -610,7 +610,7 @@ internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Wit #nullable enable namespace TUnit.Generated; -internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_ExternalClass_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_ExternalClass__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -713,12 +713,12 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Ext yield break; } } -internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_ExternalClass_ModuleInitializer_GUID +internal static class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_ExternalClass__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_ExternalClass_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new TUnit_TestProject_AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_ExternalClass__string_TestSource()); } } @@ -730,7 +730,7 @@ internal static class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Ext #nullable enable namespace TUnit.Generated; -internal sealed class AsyncMethodDataSourceDrivenTests_ValueTaskMethodDataSource_SingleValue_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_ValueTaskMethodDataSource_SingleValue__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -833,11 +833,11 @@ internal sealed class AsyncMethodDataSourceDrivenTests_ValueTaskMethodDataSource yield break; } } -internal static class AsyncMethodDataSourceDrivenTests_ValueTaskMethodDataSource_SingleValue_ModuleInitializer_GUID +internal static class TUnit_TestProject_AsyncMethodDataSourceDrivenTests_ValueTaskMethodDataSource_SingleValue__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new AsyncMethodDataSourceDrivenTests_ValueTaskMethodDataSource_SingleValue_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), new TUnit_TestProject_AsyncMethodDataSourceDrivenTests_ValueTaskMethodDataSource_SingleValue__int_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt index bd74a1f1a5..45128e1095 100644 --- a/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class AttributeTests_MyTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AttributeTests_MyTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -78,11 +78,11 @@ internal sealed class AttributeTests_MyTest_TestSource_GUID : global::TUnit.Core yield break; } } -internal static class AttributeTests_MyTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_AttributeTests_MyTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AttributeTests), new AttributeTests_MyTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AttributeTests), new TUnit_TestProject_AttributeTests_MyTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet10_0.verified.txt index a1305087b5..1e53215ffc 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet10_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet8_0.verified.txt index a1305087b5..1e53215ffc 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet8_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet9_0.verified.txt index a1305087b5..1e53215ffc 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet9_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.Net4_7.verified.txt index a2665445d5..3e33e83805 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.Net4_7.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt index 279c0098c8..cbf97f2596 100644 --- a/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class SetupTests_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BeforeTests_SetupTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -65,12 +65,12 @@ internal sealed class SetupTests_Test1_TestSource_GUID : global::TUnit.Core.Inte yield break; } } -internal static class SetupTests_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_BeforeTests_SetupTests_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BeforeTests.SetupTests), new SetupTests_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BeforeTests.SetupTests), new TUnit_TestProject_BeforeTests_SetupTests_Test1_TestSource()); } } @@ -82,7 +82,7 @@ internal static class SetupTests_Test1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class SetupTests_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BeforeTests_SetupTests_Test2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -144,11 +144,11 @@ internal sealed class SetupTests_Test2_TestSource_GUID : global::TUnit.Core.Inte yield break; } } -internal static class SetupTests_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_BeforeTests_SetupTests_Test2_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BeforeTests.SetupTests), new SetupTests_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BeforeTests.SetupTests), new TUnit_TestProject_BeforeTests_SetupTests_Test2_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt index 279c0098c8..cbf97f2596 100644 --- a/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class SetupTests_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BeforeTests_SetupTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -65,12 +65,12 @@ internal sealed class SetupTests_Test1_TestSource_GUID : global::TUnit.Core.Inte yield break; } } -internal static class SetupTests_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_BeforeTests_SetupTests_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BeforeTests.SetupTests), new SetupTests_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BeforeTests.SetupTests), new TUnit_TestProject_BeforeTests_SetupTests_Test1_TestSource()); } } @@ -82,7 +82,7 @@ internal static class SetupTests_Test1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class SetupTests_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BeforeTests_SetupTests_Test2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -144,11 +144,11 @@ internal sealed class SetupTests_Test2_TestSource_GUID : global::TUnit.Core.Inte yield break; } } -internal static class SetupTests_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_BeforeTests_SetupTests_Test2_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BeforeTests.SetupTests), new SetupTests_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BeforeTests.SetupTests), new TUnit_TestProject_BeforeTests_SetupTests_Test2_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet10_0.verified.txt index b8fd3e5ea7..0b5067de2e 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet10_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__2971_Tests_SimpleTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -67,11 +67,11 @@ internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Inte yield break; } } -internal static class Tests_SimpleTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__2971_Tests_SimpleTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2971.Tests), new Tests_SimpleTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2971.Tests), new TUnit_TestProject_Bugs__2971_Tests_SimpleTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet8_0.verified.txt index b8fd3e5ea7..0b5067de2e 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet8_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__2971_Tests_SimpleTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -67,11 +67,11 @@ internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Inte yield break; } } -internal static class Tests_SimpleTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__2971_Tests_SimpleTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2971.Tests), new Tests_SimpleTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2971.Tests), new TUnit_TestProject_Bugs__2971_Tests_SimpleTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet9_0.verified.txt index b8fd3e5ea7..0b5067de2e 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet9_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__2971_Tests_SimpleTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -67,11 +67,11 @@ internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Inte yield break; } } -internal static class Tests_SimpleTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__2971_Tests_SimpleTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2971.Tests), new Tests_SimpleTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2971.Tests), new TUnit_TestProject_Bugs__2971_Tests_SimpleTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.Net4_7.verified.txt index e6b3197526..9a1527db38 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.Net4_7.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__2971_Tests_SimpleTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -67,11 +67,11 @@ internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Inte yield break; } } -internal static class Tests_SimpleTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__2971_Tests_SimpleTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2971.Tests), new Tests_SimpleTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2971.Tests), new TUnit_TestProject_Bugs__2971_Tests_SimpleTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt index c864b9fc1c..cd51a54583 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ClassAndMethodArgumentsTests_Simple_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassAndMethodArgumentsTests_Simple_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -83,12 +83,12 @@ internal sealed class ClassAndMethodArgumentsTests_Simple_TestSource_GUID : glob yield break; } } -internal static class ClassAndMethodArgumentsTests_Simple_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassAndMethodArgumentsTests_Simple_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), new ClassAndMethodArgumentsTests_Simple_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), new TUnit_TestProject_ClassAndMethodArgumentsTests_Simple_TestSource()); } } @@ -100,7 +100,7 @@ internal static class ClassAndMethodArgumentsTests_Simple_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ClassAndMethodArgumentsTests_WithMethodLevel_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassAndMethodArgumentsTests_WithMethodLevel__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -200,12 +200,12 @@ internal sealed class ClassAndMethodArgumentsTests_WithMethodLevel_TestSource_GU yield break; } } -internal static class ClassAndMethodArgumentsTests_WithMethodLevel_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassAndMethodArgumentsTests_WithMethodLevel__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), new ClassAndMethodArgumentsTests_WithMethodLevel_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), new TUnit_TestProject_ClassAndMethodArgumentsTests_WithMethodLevel__string_TestSource()); } } @@ -217,7 +217,7 @@ internal static class ClassAndMethodArgumentsTests_WithMethodLevel_ModuleInitial #nullable enable namespace TUnit.Generated; -internal sealed class ClassAndMethodArgumentsTests_IgnoreParameters_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassAndMethodArgumentsTests_IgnoreParameters__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -317,11 +317,11 @@ internal sealed class ClassAndMethodArgumentsTests_IgnoreParameters_TestSource_G yield break; } } -internal static class ClassAndMethodArgumentsTests_IgnoreParameters_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassAndMethodArgumentsTests_IgnoreParameters__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), new ClassAndMethodArgumentsTests_IgnoreParameters_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), new TUnit_TestProject_ClassAndMethodArgumentsTests_IgnoreParameters__string_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt index b5a1c9ac47..9e4553bb0c 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ClassConstructorTest_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassConstructorTest_Test_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -93,11 +93,11 @@ internal sealed class ClassConstructorTest_Test_TestSource_GUID : global::TUnit. yield break; } } -internal static class ClassConstructorTest_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassConstructorTest_Test_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassConstructorTest), new ClassConstructorTest_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassConstructorTest), new TUnit_TestProject_ClassConstructorTest_Test_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt index b111058afd..3c6bd47d47 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTests_DataSource_Class_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTests_DataSource_Class__SomeAsyncDisposableClass_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -86,12 +86,12 @@ internal sealed class ClassDataSourceDrivenTests_DataSource_Class_TestSource_GUI yield break; } } -internal static class ClassDataSourceDrivenTests_DataSource_Class_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTests_DataSource_Class__SomeAsyncDisposableClass_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new ClassDataSourceDrivenTests_DataSource_Class_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new TUnit_TestProject_ClassDataSourceDrivenTests_DataSource_Class__SomeAsyncDisposableClass_TestSource()); } } @@ -103,7 +103,7 @@ internal static class ClassDataSourceDrivenTests_DataSource_Class_ModuleInitiali #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTests_DataSource_Class_Generic_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTests_DataSource_Class_Generic__SomeAsyncDisposableClass_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -186,12 +186,12 @@ internal sealed class ClassDataSourceDrivenTests_DataSource_Class_Generic_TestSo yield break; } } -internal static class ClassDataSourceDrivenTests_DataSource_Class_Generic_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTests_DataSource_Class_Generic__SomeAsyncDisposableClass_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new ClassDataSourceDrivenTests_DataSource_Class_Generic_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new TUnit_TestProject_ClassDataSourceDrivenTests_DataSource_Class_Generic__SomeAsyncDisposableClass_TestSource()); } } @@ -203,7 +203,7 @@ internal static class ClassDataSourceDrivenTests_DataSource_Class_Generic_Module #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_1_ClassDataSource_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_1_ClassDataSource__InitializableClass_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -285,12 +285,12 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_1_ClassDataS yield break; } } -internal static class ClassDataSourceDrivenTests_IsInitialized_With_1_ClassDataSource_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_1_ClassDataSource__InitializableClass_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new ClassDataSourceDrivenTests_IsInitialized_With_1_ClassDataSource_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_1_ClassDataSource__InitializableClass_TestSource()); } } @@ -302,7 +302,7 @@ internal static class ClassDataSourceDrivenTests_IsInitialized_With_1_ClassDataS #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_2_ClassDataSources_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_2_ClassDataSources__InitializableClass_InitializableClass_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -391,12 +391,12 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_2_ClassDataS yield break; } } -internal static class ClassDataSourceDrivenTests_IsInitialized_With_2_ClassDataSources_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_2_ClassDataSources__InitializableClass_InitializableClass_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new ClassDataSourceDrivenTests_IsInitialized_With_2_ClassDataSources_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_2_ClassDataSources__InitializableClass_InitializableClass_TestSource()); } } @@ -408,7 +408,7 @@ internal static class ClassDataSourceDrivenTests_IsInitialized_With_2_ClassDataS #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_3_ClassDataSources_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_3_ClassDataSources__InitializableClass_InitializableClass_InitializableClass_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -504,12 +504,12 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_3_ClassDataS yield break; } } -internal static class ClassDataSourceDrivenTests_IsInitialized_With_3_ClassDataSources_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_3_ClassDataSources__InitializableClass_InitializableClass_InitializableClass_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new ClassDataSourceDrivenTests_IsInitialized_With_3_ClassDataSources_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_3_ClassDataSources__InitializableClass_InitializableClass_InitializableClass_TestSource()); } } @@ -521,7 +521,7 @@ internal static class ClassDataSourceDrivenTests_IsInitialized_With_3_ClassDataS #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_4_ClassDataSources_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_4_ClassDataSources__InitializableClass_InitializableClass_InitializableClass_InitializableClass_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -624,12 +624,12 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_4_ClassDataS yield break; } } -internal static class ClassDataSourceDrivenTests_IsInitialized_With_4_ClassDataSources_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_4_ClassDataSources__InitializableClass_InitializableClass_InitializableClass_InitializableClass_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new ClassDataSourceDrivenTests_IsInitialized_With_4_ClassDataSources_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_4_ClassDataSources__InitializableClass_InitializableClass_InitializableClass_InitializableClass_TestSource()); } } @@ -641,7 +641,7 @@ internal static class ClassDataSourceDrivenTests_IsInitialized_With_4_ClassDataS #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_5_ClassDataSources_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_5_ClassDataSources__InitializableClass_InitializableClass_InitializableClass_InitializableClass_InitializableClass_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -751,11 +751,11 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_5_ClassDataS yield break; } } -internal static class ClassDataSourceDrivenTests_IsInitialized_With_5_ClassDataSources_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_5_ClassDataSources__InitializableClass_InitializableClass_InitializableClass_InitializableClass_InitializableClass_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new ClassDataSourceDrivenTests_IsInitialized_With_5_ClassDataSources_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), new TUnit_TestProject_ClassDataSourceDrivenTests_IsInitialized_With_5_ClassDataSources__InitializableClass_InitializableClass_InitializableClass_InitializableClass_InitializableClass_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt index 4b01cde3de..d1584db553 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTests2_Base_Derived1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTests2_Base_Derived1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -85,12 +85,12 @@ internal sealed class ClassDataSourceDrivenTests2_Base_Derived1_TestSource_GUID yield break; } } -internal static class ClassDataSourceDrivenTests2_Base_Derived1_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTests2_Base_Derived1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), new ClassDataSourceDrivenTests2_Base_Derived1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), new TUnit_TestProject_ClassDataSourceDrivenTests2_Base_Derived1_TestSource()); } } @@ -102,7 +102,7 @@ internal static class ClassDataSourceDrivenTests2_Base_Derived1_ModuleInitialize #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTests2_Base_Derived2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTests2_Base_Derived2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -184,11 +184,11 @@ internal sealed class ClassDataSourceDrivenTests2_Base_Derived2_TestSource_GUID yield break; } } -internal static class ClassDataSourceDrivenTests2_Base_Derived2_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTests2_Base_Derived2_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), new ClassDataSourceDrivenTests2_Base_Derived2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), new TUnit_TestProject_ClassDataSourceDrivenTests2_Base_Derived2_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt index 7fefb30a3d..856f6f9418 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class__SomeAsyncDisposableClass_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -87,12 +87,12 @@ internal sealed class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Tes yield break; } } -internal static class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class__SomeAsyncDisposableClass_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed), new ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed), new TUnit_TestProject_ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class__SomeAsyncDisposableClass_TestSource()); } } @@ -104,7 +104,7 @@ internal static class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Mod #nullable enable namespace TUnit.Generated; -internal sealed class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Generic_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Generic__SomeAsyncDisposableClass_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -188,11 +188,11 @@ internal sealed class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Gen yield break; } } -internal static class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Generic_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Generic__SomeAsyncDisposableClass_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed), new ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Generic_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed), new TUnit_TestProject_ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Generic__SomeAsyncDisposableClass_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt index 19cee92cf1..49453ba6a9 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ClassTupleDataSourceDrivenTests_DataSource_TupleMethod_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ClassTupleDataSourceDrivenTests_DataSource_TupleMethod__int_string_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { #if NET8_0_OR_GREATER [global::System.Runtime.CompilerServices.UnsafeAccessor(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Field, Name = "k__BackingField")] @@ -375,11 +375,11 @@ internal sealed class ClassTupleDataSourceDrivenTests_DataSource_TupleMethod_Tes yield break; } } -internal static class ClassTupleDataSourceDrivenTests_DataSource_TupleMethod_ModuleInitializer_GUID +internal static class TUnit_TestProject_ClassTupleDataSourceDrivenTests_DataSource_TupleMethod__int_string_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests), new ClassTupleDataSourceDrivenTests_DataSource_TupleMethod_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests), new TUnit_TestProject_ClassTupleDataSourceDrivenTests_DataSource_TupleMethod__int_string_bool_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt index d707fe70a3..e65f62d62c 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,12 +68,12 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit. yield break; } } -internal static class ConcreteClass2_SecondTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new ConcreteClass2_SecondTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_TestSource()); } } @@ -85,7 +85,7 @@ internal static class ConcreteClass2_SecondTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -149,12 +149,12 @@ internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::T yield break; } } -internal static class ConcreteClass2_AssertClassName_ModuleInitializer_GUID +internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new ConcreteClass2_AssertClassName_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource()); } } @@ -166,89 +166,7 @@ internal static class ConcreteClass2_AssertClassName_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource -{ - public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) - { - var metadata = new global::TUnit.Core.TestMetadata - { - TestName = "SecondTest", - TestClassType = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TestMethodName = "SecondTest", - Dependencies = global::System.Array.Empty(), - AttributeFactory = () => - [ - new global::TUnit.Core.TestAttribute(), - new global::TUnit.Core.InheritsTestsAttribute(), - new global::TUnit.Core.InheritsTestsAttribute() - ], - DataSources = global::System.Array.Empty(), - ClassDataSources = global::System.Array.Empty(), - PropertyDataSources = global::System.Array.Empty(), - PropertyInjections = global::System.Array.Empty(), - InheritanceDepth = 0, - FilePath = @"", - LineNumber = 3, - MethodMetadata = new global::TUnit.Core.MethodMetadata - { - Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), - Name = "SecondTest", - GenericTypeCount = 0, - ReturnType = typeof(void), - ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), - Parameters = global::System.Array.Empty(), - Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => - { - var classMetadata = new global::TUnit.Core.ClassMetadata - { - Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), - Name = "ConcreteClass2", - Namespace = "TUnit.TestProject.AbstractTests", - Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), - Parameters = global::System.Array.Empty(), - Properties = global::System.Array.Empty(), - Parent = null - }; - foreach (var prop in classMetadata.Properties) - { - prop.ClassMetadata = classMetadata; - prop.ContainingTypeMetadata = classMetadata; - } - return classMetadata; - }) - }, - InstanceFactory = (typeArgs, args) => new global::TUnit.TestProject.AbstractTests.ConcreteClass2(), - InvokeTypedTest = async (instance, args, cancellationToken) => - { - instance.SecondTest(); - await global::System.Threading.Tasks.Task.CompletedTask; - }, - }; - metadata.UseRuntimeDataGeneration(testSessionId); - yield return metadata; - yield break; - } -} -internal static class ConcreteClass2_SecondTest_ModuleInitializer_GUID -{ - [global::System.Runtime.CompilerServices.ModuleInitializer] - public static void Initialize() - { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new ConcreteClass2_SecondTest_TestSource_GUID()); - } -} - - -// ===== FILE SEPARATOR ===== - -// -#pragma warning disable - -#nullable enable -namespace TUnit.Generated; -internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -311,11 +229,11 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T yield break; } } -internal static class ConcreteClass1_AssertClassName_ModuleInitializer_GUID +internal static class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), new ConcreteClass1_AssertClassName_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), new TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt index d6884401e5..87c5254250 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ConstantArgumentsTests_String1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ConstantArgumentsTests_String1__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -85,12 +85,12 @@ internal sealed class ConstantArgumentsTests_String1_TestSource_GUID : global::T yield break; } } -internal static class ConstantArgumentsTests_String1_ModuleInitializer_GUID +internal static class TUnit_TestProject_ConstantArgumentsTests_String1__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new ConstantArgumentsTests_String1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new TUnit_TestProject_ConstantArgumentsTests_String1__string_TestSource()); } } @@ -102,7 +102,7 @@ internal static class ConstantArgumentsTests_String1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConstantArgumentsTests_Int_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ConstantArgumentsTests_Int__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -184,12 +184,12 @@ internal sealed class ConstantArgumentsTests_Int_TestSource_GUID : global::TUnit yield break; } } -internal static class ConstantArgumentsTests_Int_ModuleInitializer_GUID +internal static class TUnit_TestProject_ConstantArgumentsTests_Int__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new ConstantArgumentsTests_Int_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new TUnit_TestProject_ConstantArgumentsTests_Int__int_TestSource()); } } @@ -201,7 +201,7 @@ internal static class ConstantArgumentsTests_Int_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConstantArgumentsTests_Double_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ConstantArgumentsTests_Double__double_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -283,12 +283,12 @@ internal sealed class ConstantArgumentsTests_Double_TestSource_GUID : global::TU yield break; } } -internal static class ConstantArgumentsTests_Double_ModuleInitializer_GUID +internal static class TUnit_TestProject_ConstantArgumentsTests_Double__double_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new ConstantArgumentsTests_Double_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new TUnit_TestProject_ConstantArgumentsTests_Double__double_TestSource()); } } @@ -300,7 +300,7 @@ internal static class ConstantArgumentsTests_Double_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConstantArgumentsTests_Float_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ConstantArgumentsTests_Float__float_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -382,12 +382,12 @@ internal sealed class ConstantArgumentsTests_Float_TestSource_GUID : global::TUn yield break; } } -internal static class ConstantArgumentsTests_Float_ModuleInitializer_GUID +internal static class TUnit_TestProject_ConstantArgumentsTests_Float__float_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new ConstantArgumentsTests_Float_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new TUnit_TestProject_ConstantArgumentsTests_Float__float_TestSource()); } } @@ -399,7 +399,7 @@ internal static class ConstantArgumentsTests_Float_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConstantArgumentsTests_Long_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ConstantArgumentsTests_Long__long_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -481,12 +481,12 @@ internal sealed class ConstantArgumentsTests_Long_TestSource_GUID : global::TUni yield break; } } -internal static class ConstantArgumentsTests_Long_ModuleInitializer_GUID +internal static class TUnit_TestProject_ConstantArgumentsTests_Long__long_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new ConstantArgumentsTests_Long_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new TUnit_TestProject_ConstantArgumentsTests_Long__long_TestSource()); } } @@ -498,7 +498,7 @@ internal static class ConstantArgumentsTests_Long_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConstantArgumentsTests_UInt_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ConstantArgumentsTests_UInt__uint_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -580,12 +580,12 @@ internal sealed class ConstantArgumentsTests_UInt_TestSource_GUID : global::TUni yield break; } } -internal static class ConstantArgumentsTests_UInt_ModuleInitializer_GUID +internal static class TUnit_TestProject_ConstantArgumentsTests_UInt__uint_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new ConstantArgumentsTests_UInt_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new TUnit_TestProject_ConstantArgumentsTests_UInt__uint_TestSource()); } } @@ -597,7 +597,7 @@ internal static class ConstantArgumentsTests_UInt_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConstantArgumentsTests_ULong_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ConstantArgumentsTests_ULong__ulong_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -679,11 +679,11 @@ internal sealed class ConstantArgumentsTests_ULong_TestSource_GUID : global::TUn yield break; } } -internal static class ConstantArgumentsTests_ULong_ModuleInitializer_GUID +internal static class TUnit_TestProject_ConstantArgumentsTests_ULong__ulong_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new ConstantArgumentsTests_ULong_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstantArgumentsTests), new TUnit_TestProject_ConstantArgumentsTests_ULong__ulong_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt index 1c1f6ccc98..19426acde8 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ConstantInBaseClassTests_SomeTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1432_ConstantInBaseClassTests_SomeTest__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -85,11 +85,11 @@ internal sealed class ConstantInBaseClassTests_SomeTest_TestSource_GUID : global yield break; } } -internal static class ConstantInBaseClassTests_SomeTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1432_ConstantInBaseClassTests_SomeTest__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests), new ConstantInBaseClassTests_SomeTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests), new TUnit_TestProject_Bugs__1432_ConstantInBaseClassTests_SomeTest__string_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt index 33020368cb..fb4ed16f94 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ConstantsInInterpolatedStringsTests_SomeTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1432_ConstantsInInterpolatedStringsTests_SomeTest__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -85,11 +85,11 @@ internal sealed class ConstantsInInterpolatedStringsTests_SomeTest_TestSource_GU yield break; } } -internal static class ConstantsInInterpolatedStringsTests_SomeTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1432_ConstantsInInterpolatedStringsTests_SomeTest__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests), new ConstantsInInterpolatedStringsTests_SomeTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests), new TUnit_TestProject_Bugs__1432_ConstantsInInterpolatedStringsTests_SomeTest__string_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt index 8352e4af20..bca40cc40e 100644 --- a/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class CustomDisplayNameTests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_CustomDisplayNameTests_Test_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -80,12 +80,12 @@ internal sealed class CustomDisplayNameTests_Test_TestSource_GUID : global::TUni yield break; } } -internal static class CustomDisplayNameTests_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_CustomDisplayNameTests_Test_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new CustomDisplayNameTests_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new TUnit_TestProject_CustomDisplayNameTests_Test_TestSource()); } } @@ -97,7 +97,7 @@ internal static class CustomDisplayNameTests_Test_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class CustomDisplayNameTests_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_CustomDisplayNameTests_Test2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -174,12 +174,12 @@ internal sealed class CustomDisplayNameTests_Test2_TestSource_GUID : global::TUn yield break; } } -internal static class CustomDisplayNameTests_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_CustomDisplayNameTests_Test2_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new CustomDisplayNameTests_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new TUnit_TestProject_CustomDisplayNameTests_Test2_TestSource()); } } @@ -191,7 +191,7 @@ internal static class CustomDisplayNameTests_Test2_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class CustomDisplayNameTests_Test3_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_CustomDisplayNameTests_Test3__string_int_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -302,12 +302,12 @@ internal sealed class CustomDisplayNameTests_Test3_TestSource_GUID : global::TUn yield break; } } -internal static class CustomDisplayNameTests_Test3_ModuleInitializer_GUID +internal static class TUnit_TestProject_CustomDisplayNameTests_Test3__string_int_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new CustomDisplayNameTests_Test3_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new TUnit_TestProject_CustomDisplayNameTests_Test3__string_int_bool_TestSource()); } } @@ -319,7 +319,7 @@ internal static class CustomDisplayNameTests_Test3_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class CustomDisplayNameTests_MethodDataSourceTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_CustomDisplayNameTests_MethodDataSourceTest__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -426,12 +426,12 @@ internal sealed class CustomDisplayNameTests_MethodDataSourceTest_TestSource_GUI yield break; } } -internal static class CustomDisplayNameTests_MethodDataSourceTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_CustomDisplayNameTests_MethodDataSourceTest__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new CustomDisplayNameTests_MethodDataSourceTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new TUnit_TestProject_CustomDisplayNameTests_MethodDataSourceTest__string_TestSource()); } } @@ -443,7 +443,7 @@ internal static class CustomDisplayNameTests_MethodDataSourceTest_ModuleInitiali #nullable enable namespace TUnit.Generated; -internal sealed class CustomDisplayNameTests_TestParameterNamePrefixBug_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_CustomDisplayNameTests_TestParameterNamePrefixBug__int_string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -548,12 +548,12 @@ internal sealed class CustomDisplayNameTests_TestParameterNamePrefixBug_TestSour yield break; } } -internal static class CustomDisplayNameTests_TestParameterNamePrefixBug_ModuleInitializer_GUID +internal static class TUnit_TestProject_CustomDisplayNameTests_TestParameterNamePrefixBug__int_string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new CustomDisplayNameTests_TestParameterNamePrefixBug_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new TUnit_TestProject_CustomDisplayNameTests_TestParameterNamePrefixBug__int_string_TestSource()); } } @@ -565,7 +565,7 @@ internal static class CustomDisplayNameTests_TestParameterNamePrefixBug_ModuleIn #nullable enable namespace TUnit.Generated; -internal sealed class CustomDisplayNameTests_PasswordTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_CustomDisplayNameTests_PasswordTest__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -660,12 +660,12 @@ internal sealed class CustomDisplayNameTests_PasswordTest_TestSource_GUID : glob yield break; } } -internal static class CustomDisplayNameTests_PasswordTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_CustomDisplayNameTests_PasswordTest__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new CustomDisplayNameTests_PasswordTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new TUnit_TestProject_CustomDisplayNameTests_PasswordTest__string_TestSource()); } } @@ -677,7 +677,7 @@ internal static class CustomDisplayNameTests_PasswordTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class CustomDisplayNameTests_SameClassConstantTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_CustomDisplayNameTests_SameClassConstantTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -754,12 +754,12 @@ internal sealed class CustomDisplayNameTests_SameClassConstantTest_TestSource_GU yield break; } } -internal static class CustomDisplayNameTests_SameClassConstantTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_CustomDisplayNameTests_SameClassConstantTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new CustomDisplayNameTests_SameClassConstantTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new TUnit_TestProject_CustomDisplayNameTests_SameClassConstantTest_TestSource()); } } @@ -771,7 +771,7 @@ internal static class CustomDisplayNameTests_SameClassConstantTest_ModuleInitial #nullable enable namespace TUnit.Generated; -internal sealed class CustomDisplayNameTests_DifferentClassConstantTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_CustomDisplayNameTests_DifferentClassConstantTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -848,12 +848,12 @@ internal sealed class CustomDisplayNameTests_DifferentClassConstantTest_TestSour yield break; } } -internal static class CustomDisplayNameTests_DifferentClassConstantTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_CustomDisplayNameTests_DifferentClassConstantTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new CustomDisplayNameTests_DifferentClassConstantTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new TUnit_TestProject_CustomDisplayNameTests_DifferentClassConstantTest_TestSource()); } } @@ -865,7 +865,7 @@ internal static class CustomDisplayNameTests_DifferentClassConstantTest_ModuleIn #nullable enable namespace TUnit.Generated; -internal sealed class CustomDisplayNameTests_NestedClassConstantTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_CustomDisplayNameTests_NestedClassConstantTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -942,11 +942,11 @@ internal sealed class CustomDisplayNameTests_NestedClassConstantTest_TestSource_ yield break; } } -internal static class CustomDisplayNameTests_NestedClassConstantTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_CustomDisplayNameTests_NestedClassConstantTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new CustomDisplayNameTests_NestedClassConstantTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.CustomDisplayNameTests), new TUnit_TestProject_CustomDisplayNameTests_NestedClassConstantTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt index 336de1cd0c..6f20a523ee 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class DataDrivenTests_DataSource_Method_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataDrivenTests_DataSource_Method__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -88,12 +88,12 @@ internal sealed class DataDrivenTests_DataSource_Method_TestSource_GUID : global yield break; } } -internal static class DataDrivenTests_DataSource_Method_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataDrivenTests_DataSource_Method__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new DataDrivenTests_DataSource_Method_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new TUnit_TestProject_DataDrivenTests_DataSource_Method__int_TestSource()); } } @@ -105,7 +105,7 @@ internal static class DataDrivenTests_DataSource_Method_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DataDrivenTests_DataSource_Method_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataDrivenTests_DataSource_Method__int_string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -197,12 +197,12 @@ internal sealed class DataDrivenTests_DataSource_Method_TestSource_GUID : global yield break; } } -internal static class DataDrivenTests_DataSource_Method_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataDrivenTests_DataSource_Method__int_string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new DataDrivenTests_DataSource_Method_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new TUnit_TestProject_DataDrivenTests_DataSource_Method__int_string_TestSource()); } } @@ -214,7 +214,7 @@ internal static class DataDrivenTests_DataSource_Method_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DataDrivenTests_EnumValue_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataDrivenTests_EnumValue__TestEnum_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -299,12 +299,12 @@ internal sealed class DataDrivenTests_EnumValue_TestSource_GUID : global::TUnit. yield break; } } -internal static class DataDrivenTests_EnumValue_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataDrivenTests_EnumValue__TestEnum_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new DataDrivenTests_EnumValue_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new TUnit_TestProject_DataDrivenTests_EnumValue__TestEnum_TestSource()); } } @@ -316,7 +316,7 @@ internal static class DataDrivenTests_EnumValue_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DataDrivenTests_NullValue_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataDrivenTests_NullValue__string__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -399,12 +399,12 @@ internal sealed class DataDrivenTests_NullValue_TestSource_GUID : global::TUnit. yield break; } } -internal static class DataDrivenTests_NullValue_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataDrivenTests_NullValue__string__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new DataDrivenTests_NullValue_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new TUnit_TestProject_DataDrivenTests_NullValue__string__TestSource()); } } @@ -416,7 +416,7 @@ internal static class DataDrivenTests_NullValue_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DataDrivenTests_EmptyString_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataDrivenTests_EmptyString__string__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -499,12 +499,12 @@ internal sealed class DataDrivenTests_EmptyString_TestSource_GUID : global::TUni yield break; } } -internal static class DataDrivenTests_EmptyString_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataDrivenTests_EmptyString__string__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new DataDrivenTests_EmptyString_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new TUnit_TestProject_DataDrivenTests_EmptyString__string__TestSource()); } } @@ -516,7 +516,7 @@ internal static class DataDrivenTests_EmptyString_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DataDrivenTests_NonEmptyString_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataDrivenTests_NonEmptyString__string__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -599,12 +599,12 @@ internal sealed class DataDrivenTests_NonEmptyString_TestSource_GUID : global::T yield break; } } -internal static class DataDrivenTests_NonEmptyString_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataDrivenTests_NonEmptyString__string__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new DataDrivenTests_NonEmptyString_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new TUnit_TestProject_DataDrivenTests_NonEmptyString__string__TestSource()); } } @@ -616,7 +616,7 @@ internal static class DataDrivenTests_NonEmptyString_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DataDrivenTests_BooleanString_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataDrivenTests_BooleanString__bool__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -701,12 +701,12 @@ internal sealed class DataDrivenTests_BooleanString_TestSource_GUID : global::TU yield break; } } -internal static class DataDrivenTests_BooleanString_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataDrivenTests_BooleanString__bool__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new DataDrivenTests_BooleanString_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new TUnit_TestProject_DataDrivenTests_BooleanString__bool__TestSource()); } } @@ -718,7 +718,7 @@ internal static class DataDrivenTests_BooleanString_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DataDrivenTests_Type_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataDrivenTests_Type__Type_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -801,12 +801,12 @@ internal sealed class DataDrivenTests_Type_TestSource_GUID : global::TUnit.Core. yield break; } } -internal static class DataDrivenTests_Type_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataDrivenTests_Type__Type_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new DataDrivenTests_Type_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new TUnit_TestProject_DataDrivenTests_Type__Type_TestSource()); } } @@ -818,7 +818,7 @@ internal static class DataDrivenTests_Type_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DataDrivenTests_IntegerArray_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataDrivenTests_IntegerArray__int___TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -901,12 +901,12 @@ internal sealed class DataDrivenTests_IntegerArray_TestSource_GUID : global::TUn yield break; } } -internal static class DataDrivenTests_IntegerArray_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataDrivenTests_IntegerArray__int___ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new DataDrivenTests_IntegerArray_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new TUnit_TestProject_DataDrivenTests_IntegerArray__int___TestSource()); } } @@ -918,7 +918,7 @@ internal static class DataDrivenTests_IntegerArray_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DataDrivenTests_IntMaxValue_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataDrivenTests_IntMaxValue__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1001,11 +1001,11 @@ internal sealed class DataDrivenTests_IntMaxValue_TestSource_GUID : global::TUni yield break; } } -internal static class DataDrivenTests_IntMaxValue_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataDrivenTests_IntMaxValue__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new DataDrivenTests_IntMaxValue_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataDrivenTests), new TUnit_TestProject_DataDrivenTests_IntMaxValue__int_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt index c05cf8ad4d..937b837c69 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class DataSourceClassCombinedWithDataSourceMethod_DataSourceClassCombinedWithDataSourceMethodTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataSourceClassCombinedWithDataSourceMethod_DataSourceClassCombinedWithDataSourceMethodTest__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -174,11 +174,11 @@ internal sealed class DataSourceClassCombinedWithDataSourceMethod_DataSourceClas yield break; } } -internal static class DataSourceClassCombinedWithDataSourceMethod_DataSourceClassCombinedWithDataSourceMethodTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataSourceClassCombinedWithDataSourceMethod_DataSourceClassCombinedWithDataSourceMethodTest__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), new DataSourceClassCombinedWithDataSourceMethod_DataSourceClassCombinedWithDataSourceMethodTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), new TUnit_TestProject_DataSourceClassCombinedWithDataSourceMethod_DataSourceClassCombinedWithDataSourceMethodTest__int_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt index eca84acf16..f6d1df611d 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class DataSourceGeneratorTests_GeneratedData_Method_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataSourceGeneratorTests_GeneratedData_Method__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -118,12 +118,12 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method_TestSource_G yield break; } } -internal static class DataSourceGeneratorTests_GeneratedData_Method_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataSourceGeneratorTests_GeneratedData_Method__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataSourceGeneratorTests), new DataSourceGeneratorTests_GeneratedData_Method_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataSourceGeneratorTests), new TUnit_TestProject_DataSourceGeneratorTests_GeneratedData_Method__int_TestSource()); } } @@ -135,7 +135,7 @@ internal static class DataSourceGeneratorTests_GeneratedData_Method_ModuleInitia #nullable enable namespace TUnit.Generated; -internal sealed class DataSourceGeneratorTests_GeneratedData_Method2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataSourceGeneratorTests_GeneratedData_Method2__int_string_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -264,12 +264,12 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method2_TestSource_ yield break; } } -internal static class DataSourceGeneratorTests_GeneratedData_Method2_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataSourceGeneratorTests_GeneratedData_Method2__int_string_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataSourceGeneratorTests), new DataSourceGeneratorTests_GeneratedData_Method2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataSourceGeneratorTests), new TUnit_TestProject_DataSourceGeneratorTests_GeneratedData_Method2__int_string_bool_TestSource()); } } @@ -281,7 +281,7 @@ internal static class DataSourceGeneratorTests_GeneratedData_Method2_ModuleIniti #nullable enable namespace TUnit.Generated; -internal sealed class DataSourceGeneratorTests_GeneratedData_Method3_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DataSourceGeneratorTests_GeneratedData_Method3__int_string_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -410,11 +410,11 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method3_TestSource_ yield break; } } -internal static class DataSourceGeneratorTests_GeneratedData_Method3_ModuleInitializer_GUID +internal static class TUnit_TestProject_DataSourceGeneratorTests_GeneratedData_Method3__int_string_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataSourceGeneratorTests), new DataSourceGeneratorTests_GeneratedData_Method3_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DataSourceGeneratorTests), new TUnit_TestProject_DataSourceGeneratorTests_GeneratedData_Method3__int_string_bool_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt index f52d004117..682194531f 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class AutoDataTests_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AutoDataTests_Test1__string_int_double_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -105,11 +105,11 @@ internal sealed class AutoDataTests_Test1_TestSource_GUID : global::TUnit.Core.I yield break; } } -internal static class AutoDataTests_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_AutoDataTests_Test1__string_int_double_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AutoDataTests), new AutoDataTests_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AutoDataTests), new TUnit_TestProject_AutoDataTests_Test1__string_int_double_bool_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt index c408aadbe5..bfb7118f4c 100644 --- a/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_Transfer_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_Transfer__decimal_decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -94,12 +94,12 @@ internal sealed class DecimalArgumentTests_Transfer_TestSource_GUID : global::TU yield break; } } -internal static class DecimalArgumentTests_Transfer_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_Transfer__decimal_decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_Transfer_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_Transfer__decimal_decimal_TestSource()); } } @@ -111,7 +111,7 @@ internal static class DecimalArgumentTests_Transfer_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_SimpleDecimal_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_SimpleDecimal__decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -193,12 +193,12 @@ internal sealed class DecimalArgumentTests_SimpleDecimal_TestSource_GUID : globa yield break; } } -internal static class DecimalArgumentTests_SimpleDecimal_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_SimpleDecimal__decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_SimpleDecimal_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_SimpleDecimal__decimal_TestSource()); } } @@ -210,7 +210,7 @@ internal static class DecimalArgumentTests_SimpleDecimal_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_SmallDecimal_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_SmallDecimal__decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -292,12 +292,12 @@ internal sealed class DecimalArgumentTests_SmallDecimal_TestSource_GUID : global yield break; } } -internal static class DecimalArgumentTests_SmallDecimal_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_SmallDecimal__decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_SmallDecimal_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_SmallDecimal__decimal_TestSource()); } } @@ -309,7 +309,7 @@ internal static class DecimalArgumentTests_SmallDecimal_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_MaxDecimal_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_MaxDecimal__decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -391,12 +391,12 @@ internal sealed class DecimalArgumentTests_MaxDecimal_TestSource_GUID : global:: yield break; } } -internal static class DecimalArgumentTests_MaxDecimal_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_MaxDecimal__decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_MaxDecimal_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_MaxDecimal__decimal_TestSource()); } } @@ -408,7 +408,7 @@ internal static class DecimalArgumentTests_MaxDecimal_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_MinDecimal_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_MinDecimal__decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -490,12 +490,12 @@ internal sealed class DecimalArgumentTests_MinDecimal_TestSource_GUID : global:: yield break; } } -internal static class DecimalArgumentTests_MinDecimal_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_MinDecimal__decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_MinDecimal_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_MinDecimal__decimal_TestSource()); } } @@ -507,7 +507,7 @@ internal static class DecimalArgumentTests_MinDecimal_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_ExplicitDecimalValue_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_ExplicitDecimalValue__decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -589,12 +589,12 @@ internal sealed class DecimalArgumentTests_ExplicitDecimalValue_TestSource_GUID yield break; } } -internal static class DecimalArgumentTests_ExplicitDecimalValue_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_ExplicitDecimalValue__decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_ExplicitDecimalValue_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_ExplicitDecimalValue__decimal_TestSource()); } } @@ -606,7 +606,7 @@ internal static class DecimalArgumentTests_ExplicitDecimalValue_ModuleInitialize #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_MultipleDecimals_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_MultipleDecimals__decimal_decimal_decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -702,12 +702,12 @@ internal sealed class DecimalArgumentTests_MultipleDecimals_TestSource_GUID : gl yield break; } } -internal static class DecimalArgumentTests_MultipleDecimals_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_MultipleDecimals__decimal_decimal_decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_MultipleDecimals_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_MultipleDecimals__decimal_decimal_decimal_TestSource()); } } @@ -719,7 +719,7 @@ internal static class DecimalArgumentTests_MultipleDecimals_ModuleInitializer_GU #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_Test__decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -804,12 +804,12 @@ internal sealed class DecimalArgumentTests_Test_TestSource_GUID : global::TUnit. yield break; } } -internal static class DecimalArgumentTests_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_Test__decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_Test__decimal_TestSource()); } } @@ -821,7 +821,7 @@ internal static class DecimalArgumentTests_Test_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_TransactionDiscountCalculations_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_TransactionDiscountCalculations__decimal_decimal_decimal_decimal_decimal_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -941,12 +941,12 @@ internal sealed class DecimalArgumentTests_TransactionDiscountCalculations_TestS yield break; } } -internal static class DecimalArgumentTests_TransactionDiscountCalculations_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_TransactionDiscountCalculations__decimal_decimal_decimal_decimal_decimal_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_TransactionDiscountCalculations_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_TransactionDiscountCalculations__decimal_decimal_decimal_decimal_decimal_bool_TestSource()); } } @@ -958,7 +958,7 @@ internal static class DecimalArgumentTests_TransactionDiscountCalculations_Modul #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_Equality3_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_Equality3__decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1040,12 +1040,12 @@ internal sealed class DecimalArgumentTests_Equality3_TestSource_GUID : global::T yield break; } } -internal static class DecimalArgumentTests_Equality3_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_Equality3__decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_Equality3_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_Equality3__decimal_TestSource()); } } @@ -1057,7 +1057,7 @@ internal static class DecimalArgumentTests_Equality3_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_Equality4_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_Equality4__decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1139,12 +1139,12 @@ internal sealed class DecimalArgumentTests_Equality4_TestSource_GUID : global::T yield break; } } -internal static class DecimalArgumentTests_Equality4_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_Equality4__decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_Equality4_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_Equality4__decimal_TestSource()); } } @@ -1156,7 +1156,7 @@ internal static class DecimalArgumentTests_Equality4_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DecimalArgumentTests_TestMethod_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_DecimalArgumentTests_TestMethod__decimal_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1238,11 +1238,11 @@ internal sealed class DecimalArgumentTests_TestMethod_TestSource_GUID : global:: yield break; } } -internal static class DecimalArgumentTests_TestMethod_ModuleInitializer_GUID +internal static class TUnit_TestProject_DecimalArgumentTests_TestMethod__decimal_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new DecimalArgumentTests_TestMethod_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.DecimalArgumentTests), new TUnit_TestProject_DecimalArgumentTests_TestMethod__decimal_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet10_0.verified.txt index a1305087b5..1e53215ffc 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet10_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet8_0.verified.txt index a1305087b5..1e53215ffc 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet8_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet9_0.verified.txt index a1305087b5..1e53215ffc 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet9_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.Net4_7.verified.txt index a2665445d5..3e33e83805 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.Net4_7.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_SynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit yield break; } } -internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_SynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_SynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_SynchronousTest_TestSource()); } } @@ -83,7 +83,7 @@ internal static class BasicTests_SynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_AsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -145,12 +145,12 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni yield break; } } -internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_AsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_AsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_AsynchronousTest_TestSource()); } } @@ -162,7 +162,7 @@ internal static class BasicTests_AsynchronousTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo yield break; } } -internal static class BasicTests_ValueTaskAsynchronousTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new BasicTests_ValueTaskAsynchronousTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.BasicTests), new TUnit_TestProject_BasicTests_ValueTaskAsynchronousTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt index 712d336307..d4e8356aa1 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class EnumMemberNamesTests_SomeTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1432_EnumMemberNamesTests_SomeTest__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -88,11 +88,11 @@ internal sealed class EnumMemberNamesTests_SomeTest_TestSource_GUID : global::TU yield break; } } -internal static class EnumMemberNamesTests_SomeTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1432_EnumMemberNamesTests_SomeTest__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1432.EnumMemberNamesTests), new EnumMemberNamesTests_SomeTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1432.EnumMemberNamesTests), new TUnit_TestProject_Bugs__1432_EnumMemberNamesTests_SomeTest__string_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt index c300f0066d..d63eb8e5e0 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class EnumerableDataSourceDrivenTests_DataSource_Method_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_EnumerableDataSourceDrivenTests_DataSource_Method__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -106,12 +106,12 @@ internal sealed class EnumerableDataSourceDrivenTests_DataSource_Method_TestSour yield break; } } -internal static class EnumerableDataSourceDrivenTests_DataSource_Method_ModuleInitializer_GUID +internal static class TUnit_TestProject_EnumerableDataSourceDrivenTests_DataSource_Method__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), new EnumerableDataSourceDrivenTests_DataSource_Method_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), new TUnit_TestProject_EnumerableDataSourceDrivenTests_DataSource_Method__int_TestSource()); } } @@ -123,7 +123,7 @@ internal static class EnumerableDataSourceDrivenTests_DataSource_Method_ModuleIn #nullable enable namespace TUnit.Generated; -internal sealed class EnumerableDataSourceDrivenTests_DataSource_Method2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_EnumerableDataSourceDrivenTests_DataSource_Method2__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -226,12 +226,12 @@ internal sealed class EnumerableDataSourceDrivenTests_DataSource_Method2_TestSou yield break; } } -internal static class EnumerableDataSourceDrivenTests_DataSource_Method2_ModuleInitializer_GUID +internal static class TUnit_TestProject_EnumerableDataSourceDrivenTests_DataSource_Method2__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), new EnumerableDataSourceDrivenTests_DataSource_Method2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), new TUnit_TestProject_EnumerableDataSourceDrivenTests_DataSource_Method2__int_TestSource()); } } @@ -243,7 +243,7 @@ internal static class EnumerableDataSourceDrivenTests_DataSource_Method2_ModuleI #nullable enable namespace TUnit.Generated; -internal sealed class EnumerableDataSourceDrivenTests_DataSource_WithBaseReturn_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_EnumerableDataSourceDrivenTests_DataSource_WithBaseReturn__BaseValue_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -347,11 +347,11 @@ internal sealed class EnumerableDataSourceDrivenTests_DataSource_WithBaseReturn_ yield break; } } -internal static class EnumerableDataSourceDrivenTests_DataSource_WithBaseReturn_ModuleInitializer_GUID +internal static class TUnit_TestProject_EnumerableDataSourceDrivenTests_DataSource_WithBaseReturn__BaseValue_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), new EnumerableDataSourceDrivenTests_DataSource_WithBaseReturn_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), new TUnit_TestProject_EnumerableDataSourceDrivenTests_DataSource_WithBaseReturn__BaseValue_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt index fefd09ae86..efe5088b6a 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class EnumerableTupleDataSourceDrivenTests_DataSource_TupleMethod_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_EnumerableTupleDataSourceDrivenTests_DataSource_TupleMethod__int_string_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -143,11 +143,11 @@ internal sealed class EnumerableTupleDataSourceDrivenTests_DataSource_TupleMetho yield break; } } -internal static class EnumerableTupleDataSourceDrivenTests_DataSource_TupleMethod_ModuleInitializer_GUID +internal static class TUnit_TestProject_EnumerableTupleDataSourceDrivenTests_DataSource_TupleMethod__int_string_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests), new EnumerableTupleDataSourceDrivenTests_DataSource_TupleMethod_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests), new TUnit_TestProject_EnumerableTupleDataSourceDrivenTests_DataSource_TupleMethod__int_string_bool_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt index 1187ae1508..3d728feea7 100644 --- a/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ExpectedArgumentTypeTests_TypedArguments_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ExpectedArgumentTypeTests_TypedArguments__object_Type_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -104,12 +104,12 @@ internal sealed class ExpectedArgumentTypeTests_TypedArguments_TestSource_GUID : yield break; } } -internal static class ExpectedArgumentTypeTests_TypedArguments_ModuleInitializer_GUID +internal static class TUnit_TestProject_ExpectedArgumentTypeTests_TypedArguments__object_Type_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests), new ExpectedArgumentTypeTests_TypedArguments_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests), new TUnit_TestProject_ExpectedArgumentTypeTests_TypedArguments__object_Type_TestSource()); } } @@ -121,7 +121,7 @@ internal static class ExpectedArgumentTypeTests_TypedArguments_ModuleInitializer #nullable enable namespace TUnit.Generated; -internal sealed class ExpectedArgumentTypeTests_EnumTypes_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ExpectedArgumentTypeTests_EnumTypes__object_Type_Type_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -224,11 +224,11 @@ internal sealed class ExpectedArgumentTypeTests_EnumTypes_TestSource_GUID : glob yield break; } } -internal static class ExpectedArgumentTypeTests_EnumTypes_ModuleInitializer_GUID +internal static class TUnit_TestProject_ExpectedArgumentTypeTests_EnumTypes__object_Type_Type_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests), new ExpectedArgumentTypeTests_EnumTypes_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests), new TUnit_TestProject_ExpectedArgumentTypeTests_EnumTypes__object_Type_Type_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt index 6d5d9cf9b7..2c7b677305 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class GenericMethodTests_AggregateBy_HasExpectedOutput_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_GenericMethodTests_AggregateBy_HasExpectedOutput__IEnumerable_TSource__Func_TSource__TKey__Func_TKey__TAccumulate__Func_TAccumulate__TSource__TAccumulate__IEqualityComparer_TKey___IEnumerable_KeyValuePair_TKey__TAccumulate___TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -421,11 +421,11 @@ internal sealed class GenericMethodTests_AggregateBy_HasExpectedOutput_TestSourc yield break; } } -internal static class GenericMethodTests_AggregateBy_HasExpectedOutput_ModuleInitializer_GUID +internal static class TUnit_TestProject_GenericMethodTests_AggregateBy_HasExpectedOutput__IEnumerable_TSource__Func_TSource__TKey__Func_TKey__TAccumulate__Func_TAccumulate__TSource__TAccumulate__IEqualityComparer_TKey___IEnumerable_KeyValuePair_TKey__TAccumulate___ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.GenericMethodTests), new GenericMethodTests_AggregateBy_HasExpectedOutput_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.GenericMethodTests), new TUnit_TestProject_GenericMethodTests_AggregateBy_HasExpectedOutput__IEnumerable_TSource__Func_TSource__TKey__Func_TKey__TAccumulate__Func_TAccumulate__TSource__TAccumulate__IEqualityComparer_TKey___IEnumerable_KeyValuePair_TKey__TAccumulate___TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_EmptyGenericRegistry_WhenNoGenericsFound.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_EmptyGenericRegistry_WhenNoGenericsFound.verified.txt index e74f85cd61..f47d5cfbc7 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_EmptyGenericRegistry_WhenNoGenericsFound.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_EmptyGenericRegistry_WhenNoGenericsFound.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class SimpleTestClass_NonGenericTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_SimpleTestClass_NonGenericTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,11 +66,11 @@ internal sealed class SimpleTestClass_NonGenericTest_TestSource_GUID : global::T yield break; } } -internal static class SimpleTestClass_NonGenericTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_SimpleTestClass_NonGenericTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.SimpleTestClass), new SimpleTestClass_NonGenericTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.SimpleTestClass), new TUnit_TestProject_SimpleTestClass_NonGenericTest_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericConstraints_WithInstantiation.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericConstraints_WithInstantiation.verified.txt index 5f4b487e50..6af0b5f935 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericConstraints_WithInstantiation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericConstraints_WithInstantiation.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ConstrainedGenericTestClass_TestMethod_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -200,11 +200,11 @@ internal sealed class ConstrainedGenericTestClass_TestMethod_TestSource_GUID : g yield break; } } -internal static class ConstrainedGenericTestClass_TestMethod_ModuleInitializer_GUID +internal static class TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), new ConstrainedGenericTestClass_TestMethod_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), new TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestClass_WithExplicitInstantiation.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestClass_WithExplicitInstantiation.verified.txt index 0915b76c23..e410c5c297 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestClass_WithExplicitInstantiation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestClass_WithExplicitInstantiation.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class GenericTestClass_TestMethod_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -200,11 +200,11 @@ internal sealed class GenericTestClass_TestMethod_TestSource_GUID : global::TUni yield break; } } -internal static class GenericTestClass_TestMethod_ModuleInitializer_GUID +internal static class TUnit_TestProject_GenericTestClass_T_TestMethod_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.GenericTestClass<>), new GenericTestClass_TestMethod_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.GenericTestClass<>), new TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestMethod_WithExplicitInstantiation.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestMethod_WithExplicitInstantiation.verified.txt index 365c22e4b6..f8195e18fe 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestMethod_WithExplicitInstantiation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestMethod_WithExplicitInstantiation.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class TestClass_GenericTestMethod_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_TestClass_GenericTestMethod_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -196,11 +196,11 @@ internal sealed class TestClass_GenericTestMethod_TestSource_GUID : global::TUni yield break; } } -internal static class TestClass_GenericTestMethod_ModuleInitializer_GUID +internal static class TUnit_TestProject_TestClass_GenericTestMethod_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TestClass), new TestClass_GenericTestMethod_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TestClass), new TUnit_TestProject_TestClass_GenericTestMethod_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt index 30b0e79edd..d207458491 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class MultiGenericTestClass_TestMethod_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -200,11 +200,11 @@ internal sealed class MultiGenericTestClass_TestMethod_TestSource_GUID : global: yield break; } } -internal static class MultiGenericTestClass_TestMethod_ModuleInitializer_GUID +internal static class TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), new MultiGenericTestClass_TestMethod_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), new TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt index f56db59444..04734c2922 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class NestedGenericTestClass_TestMethod_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NestedGenericTestClass_T_TestMethod_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -200,11 +200,11 @@ internal sealed class NestedGenericTestClass_TestMethod_TestSource_GUID : global yield break; } } -internal static class NestedGenericTestClass_TestMethod_ModuleInitializer_GUID +internal static class TUnit_TestProject_NestedGenericTestClass_T_TestMethod_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NestedGenericTestClass<>), new NestedGenericTestClass_TestMethod_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NestedGenericTestClass<>), new TUnit_TestProject_NestedGenericTestClass_T_TestMethod_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt index dcd0744239..32a9f3edd1 100644 --- a/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt @@ -15,8 +15,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase1_AfterEach1_After_Test_GUID; -internal static class GlobalBase1_AfterEach1_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalBase1_AfterEach1_After_Test; +internal static class TUnit_TestProject_AfterTests_GlobalBase1_AfterEach1_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -90,8 +90,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase2_AfterEach2_After_Test_GUID; -internal static class GlobalBase2_AfterEach2_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalBase2_AfterEach2_After_Test; +internal static class TUnit_TestProject_AfterTests_GlobalBase2_AfterEach2_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -165,8 +165,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase3_AfterEach3_After_Test_GUID; -internal static class GlobalBase3_AfterEach3_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalBase3_AfterEach3_After_Test; +internal static class TUnit_TestProject_AfterTests_GlobalBase3_AfterEach3_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -240,8 +240,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalCleanUpTests_CleanUp_After_Test_GUID; -internal static class GlobalCleanUpTests_CleanUp_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalCleanUpTests_CleanUp_After_Test; +internal static class TUnit_TestProject_AfterTests_GlobalCleanUpTests_CleanUp_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -315,8 +315,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalCleanUpTests_CleanUp_After_Test_GUID; -internal static class GlobalCleanUpTests_CleanUp_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalCleanUpTests_CleanUp__CancellationToken_After_Test; +internal static class TUnit_TestProject_AfterTests_GlobalCleanUpTests_CleanUp__CancellationToken_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -399,8 +399,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalCleanUpTests_CleanUpWithContext_After_Test_GUID; -internal static class GlobalCleanUpTests_CleanUpWithContext_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalCleanUpTests_CleanUpWithContext__TestContext_After_Test; +internal static class TUnit_TestProject_AfterTests_GlobalCleanUpTests_CleanUpWithContext__TestContext_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -483,8 +483,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalCleanUpTests_CleanUpWithContext_After_Test_GUID; -internal static class GlobalCleanUpTests_CleanUpWithContext_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalCleanUpTests_CleanUpWithContext__TestContext_CancellationToken_After_Test; +internal static class TUnit_TestProject_AfterTests_GlobalCleanUpTests_CleanUpWithContext__TestContext_CancellationToken_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -574,8 +574,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase1_AfterAll1_AfterEvery_Test_GUID; -internal static class GlobalBase1_AfterAll1_AfterEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalBase1_AfterAll1__TestContext_AfterEvery_Test; +internal static class TUnit_TestProject_AfterTests_GlobalBase1_AfterAll1__TestContext_AfterEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -657,8 +657,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase2_AfterAll2_AfterEvery_Test_GUID; -internal static class GlobalBase2_AfterAll2_AfterEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalBase2_AfterAll2__TestContext_AfterEvery_Test; +internal static class TUnit_TestProject_AfterTests_GlobalBase2_AfterAll2__TestContext_AfterEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -740,8 +740,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase3_AfterAll3_AfterEvery_Test_GUID; -internal static class GlobalBase3_AfterAll3_AfterEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalBase3_AfterAll3__TestContext_AfterEvery_Test; +internal static class TUnit_TestProject_AfterTests_GlobalBase3_AfterAll3__TestContext_AfterEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -823,8 +823,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalCleanUpTests_AfterAllCleanUp_AfterEvery_Test_GUID; -internal static class GlobalCleanUpTests_AfterAllCleanUp_AfterEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalCleanUpTests_AfterAllCleanUp__TestContext_AfterEvery_Test; +internal static class TUnit_TestProject_AfterTests_GlobalCleanUpTests_AfterAllCleanUp__TestContext_AfterEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -906,8 +906,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalCleanUpTests_AfterAllCleanUp_AfterEvery_Test_GUID; -internal static class GlobalCleanUpTests_AfterAllCleanUp_AfterEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalCleanUpTests_AfterAllCleanUp__TestContext_CancellationToken_AfterEvery_Test; +internal static class TUnit_TestProject_AfterTests_GlobalCleanUpTests_AfterAllCleanUp__TestContext_CancellationToken_AfterEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -996,8 +996,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalCleanUpTests_AfterAllCleanUpWithContext_AfterEvery_Test_GUID; -internal static class GlobalCleanUpTests_AfterAllCleanUpWithContext_AfterEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalCleanUpTests_AfterAllCleanUpWithContext__TestContext_AfterEvery_Test; +internal static class TUnit_TestProject_AfterTests_GlobalCleanUpTests_AfterAllCleanUpWithContext__TestContext_AfterEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -1079,8 +1079,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalCleanUpTests_AfterAllCleanUpWithContext_AfterEvery_Test_GUID; -internal static class GlobalCleanUpTests_AfterAllCleanUpWithContext_AfterEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_AfterTests_GlobalCleanUpTests_AfterAllCleanUpWithContext__TestContext_CancellationToken_AfterEvery_Test; +internal static class TUnit_TestProject_AfterTests_GlobalCleanUpTests_AfterAllCleanUpWithContext__TestContext_CancellationToken_AfterEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() diff --git a/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt index 225d8f88cf..1824176b45 100644 --- a/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt @@ -15,8 +15,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase1_BeforeEach1_Before_Test_GUID; -internal static class GlobalBase1_BeforeEach1_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalBase1_BeforeEach1_Before_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalBase1_BeforeEach1_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -90,8 +90,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase2_BeforeEach2_Before_Test_GUID; -internal static class GlobalBase2_BeforeEach2_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalBase2_BeforeEach2_Before_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalBase2_BeforeEach2_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -165,8 +165,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase3_BeforeEach3_Before_Test_GUID; -internal static class GlobalBase3_BeforeEach3_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalBase3_BeforeEach3_Before_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalBase3_BeforeEach3_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -240,8 +240,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalSetUpTests_SetUp_Before_Test_GUID; -internal static class GlobalSetUpTests_SetUp_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalSetUpTests_SetUp_Before_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalSetUpTests_SetUp_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -315,8 +315,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalSetUpTests_SetUp_Before_Test_GUID; -internal static class GlobalSetUpTests_SetUp_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalSetUpTests_SetUp__CancellationToken_Before_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalSetUpTests_SetUp__CancellationToken_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -399,8 +399,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalSetUpTests_SetUpWithContext_Before_Test_GUID; -internal static class GlobalSetUpTests_SetUpWithContext_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalSetUpTests_SetUpWithContext__TestContext_Before_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalSetUpTests_SetUpWithContext__TestContext_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -483,8 +483,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalSetUpTests_SetUpWithContext_Before_Test_GUID; -internal static class GlobalSetUpTests_SetUpWithContext_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalSetUpTests_SetUpWithContext__TestContext_CancellationToken_Before_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalSetUpTests_SetUpWithContext__TestContext_CancellationToken_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -574,8 +574,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase1_BeforeAll1_BeforeEvery_Test_GUID; -internal static class GlobalBase1_BeforeAll1_BeforeEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalBase1_BeforeAll1__TestContext_BeforeEvery_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalBase1_BeforeAll1__TestContext_BeforeEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -657,8 +657,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase2_BeforeAll2_BeforeEvery_Test_GUID; -internal static class GlobalBase2_BeforeAll2_BeforeEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalBase2_BeforeAll2__TestContext_BeforeEvery_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalBase2_BeforeAll2__TestContext_BeforeEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -740,8 +740,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalBase3_BeforeAll3_BeforeEvery_Test_GUID; -internal static class GlobalBase3_BeforeAll3_BeforeEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalBase3_BeforeAll3__TestContext_BeforeEvery_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalBase3_BeforeAll3__TestContext_BeforeEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -823,8 +823,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalSetUpTests_BeforeAllSetUp_BeforeEvery_Test_GUID; -internal static class GlobalSetUpTests_BeforeAllSetUp_BeforeEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalSetUpTests_BeforeAllSetUp__TestContext_BeforeEvery_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalSetUpTests_BeforeAllSetUp__TestContext_BeforeEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -906,8 +906,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalSetUpTests_BeforeAllSetUp_BeforeEvery_Test_GUID; -internal static class GlobalSetUpTests_BeforeAllSetUp_BeforeEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalSetUpTests_BeforeAllSetUp__TestContext_CancellationToken_BeforeEvery_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalSetUpTests_BeforeAllSetUp__TestContext_CancellationToken_BeforeEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -996,8 +996,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalSetUpTests_BeforeAllSetUpWithContext_BeforeEvery_Test_GUID; -internal static class GlobalSetUpTests_BeforeAllSetUpWithContext_BeforeEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalSetUpTests_BeforeAllSetUpWithContext__TestContext_BeforeEvery_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalSetUpTests_BeforeAllSetUpWithContext__TestContext_BeforeEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -1079,8 +1079,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.GlobalSetUpTests_BeforeAllSetUpWithContext_BeforeEvery_Test_GUID; -internal static class GlobalSetUpTests_BeforeAllSetUpWithContext_BeforeEvery_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_BeforeTests_GlobalSetUpTests_BeforeAllSetUpWithContext__TestContext_CancellationToken_BeforeEvery_Test; +internal static class TUnit_TestProject_BeforeTests_GlobalSetUpTests_BeforeAllSetUpWithContext__TestContext_CancellationToken_BeforeEvery_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() diff --git a/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt index b34b16e7dd..30f345f65e 100644 --- a/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1589_MyTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -84,11 +84,11 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa yield break; } } -internal static class MyTests_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1589_MyTests_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1589.MyTests), new MyTests_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1589.MyTests), new TUnit_TestProject_Bugs__1589_MyTests_Test1_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt index b8277907aa..6b791bb019 100644 --- a/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1594_MyTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -85,11 +85,11 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa yield break; } } -internal static class MyTests_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1594_MyTests_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1594.MyTests), new MyTests_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1594.MyTests), new TUnit_TestProject_Bugs__1594_MyTests_Test1_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/HooksTests.DisposableFieldTests.verified.txt b/TUnit.Core.SourceGenerator.Tests/HooksTests.DisposableFieldTests.verified.txt index 924876fdcb..fc1175e078 100644 --- a/TUnit.Core.SourceGenerator.Tests/HooksTests.DisposableFieldTests.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/HooksTests.DisposableFieldTests.verified.txt @@ -15,8 +15,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.DisposableFieldTests_Setup_Before_Test_GUID; -internal static class DisposableFieldTests_Setup_Before_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_DisposableFieldTests_Setup_Before_Test; +internal static class TUnit_TestProject_DisposableFieldTests_Setup_Before_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() @@ -90,8 +90,8 @@ using global::TUnit.Core.Hooks; using global::TUnit.Core.Interfaces.SourceGenerator; using global::TUnit.Core.Models; using HookType = global::TUnit.Core.HookType; -namespace TUnit.Generated.Hooks.DisposableFieldTests_Blah_After_Test_GUID; -internal static class DisposableFieldTests_Blah_After_Test_GUIDInitializer +namespace TUnit.Generated.Hooks.TUnit_TestProject_DisposableFieldTests_Blah_After_Test; +internal static class TUnit_TestProject_DisposableFieldTests_Blah_After_TestInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() diff --git a/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt index 033da0ac0c..2299f9c2ba 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class PropertySetterTests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_PropertySetterTests_Test_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { #if NET8_0_OR_GREATER [global::System.Runtime.CompilerServices.UnsafeAccessor(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Field, Name = "k__BackingField")] @@ -330,12 +330,12 @@ internal sealed class PropertySetterTests_Test_TestSource_GUID : global::TUnit.C yield break; } } -internal static class PropertySetterTests_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_PropertySetterTests_Test_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PropertySetterTests), new PropertySetterTests_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PropertySetterTests), new TUnit_TestProject_PropertySetterTests_Test_TestSource()); } } @@ -347,7 +347,7 @@ internal static class PropertySetterTests_Test_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class InheritedPropertySetterTests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_InheritedPropertySetterTests_Test_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { #if NET8_0_OR_GREATER [global::System.Runtime.CompilerServices.UnsafeAccessor(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Field, Name = "k__BackingField")] @@ -574,11 +574,11 @@ internal sealed class InheritedPropertySetterTests_Test_TestSource_GUID : global yield break; } } -internal static class InheritedPropertySetterTests_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_InheritedPropertySetterTests_Test_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedPropertySetterTests), new InheritedPropertySetterTests_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedPropertySetterTests), new TUnit_TestProject_InheritedPropertySetterTests_Test_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt index a115c268da..705b0d2311 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class InheritedTestsFromDifferentProjectTests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_Test_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -69,12 +69,12 @@ internal sealed class InheritedTestsFromDifferentProjectTests_Test_TestSource_GU yield break; } } -internal static class InheritedTestsFromDifferentProjectTests_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_Test_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new InheritedTestsFromDifferentProjectTests_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new TUnit_TestProject_InheritedTestsFromDifferentProjectTests_Test_TestSource()); } } @@ -86,7 +86,7 @@ internal static class InheritedTestsFromDifferentProjectTests_Test_ModuleInitial #nullable enable namespace TUnit.Generated; -internal sealed class InheritedTestsFromDifferentProjectTests_GenericMethodDataSource_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_GenericMethodDataSource__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -171,12 +171,12 @@ internal sealed class InheritedTestsFromDifferentProjectTests_GenericMethodDataS yield break; } } -internal static class InheritedTestsFromDifferentProjectTests_GenericMethodDataSource_ModuleInitializer_GUID +internal static class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_GenericMethodDataSource__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new InheritedTestsFromDifferentProjectTests_GenericMethodDataSource_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new TUnit_TestProject_InheritedTestsFromDifferentProjectTests_GenericMethodDataSource__string_TestSource()); } } @@ -188,7 +188,7 @@ internal static class InheritedTestsFromDifferentProjectTests_GenericMethodDataS #nullable enable namespace TUnit.Generated; -internal sealed class InheritedTestsFromDifferentProjectTests_NonGenericMethodDataSource_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_NonGenericMethodDataSource__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -284,12 +284,12 @@ internal sealed class InheritedTestsFromDifferentProjectTests_NonGenericMethodDa yield break; } } -internal static class InheritedTestsFromDifferentProjectTests_NonGenericMethodDataSource_ModuleInitializer_GUID +internal static class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_NonGenericMethodDataSource__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new InheritedTestsFromDifferentProjectTests_NonGenericMethodDataSource_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new TUnit_TestProject_InheritedTestsFromDifferentProjectTests_NonGenericMethodDataSource__string_TestSource()); } } @@ -301,7 +301,7 @@ internal static class InheritedTestsFromDifferentProjectTests_NonGenericMethodDa #nullable enable namespace TUnit.Generated; -internal sealed class InheritedTestsFromDifferentProjectTests_VerifyInheritedCategoriesAreAvailable_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_VerifyInheritedCategoriesAreAvailable_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -366,12 +366,12 @@ internal sealed class InheritedTestsFromDifferentProjectTests_VerifyInheritedCat yield break; } } -internal static class InheritedTestsFromDifferentProjectTests_VerifyInheritedCategoriesAreAvailable_ModuleInitializer_GUID +internal static class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_VerifyInheritedCategoriesAreAvailable_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new InheritedTestsFromDifferentProjectTests_VerifyInheritedCategoriesAreAvailable_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new TUnit_TestProject_InheritedTestsFromDifferentProjectTests_VerifyInheritedCategoriesAreAvailable_TestSource()); } } @@ -383,7 +383,7 @@ internal static class InheritedTestsFromDifferentProjectTests_VerifyInheritedCat #nullable enable namespace TUnit.Generated; -internal sealed class InheritedTestsFromDifferentProjectTests_BaseTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -450,12 +450,12 @@ internal sealed class InheritedTestsFromDifferentProjectTests_BaseTest_TestSourc yield break; } } -internal static class InheritedTestsFromDifferentProjectTests_BaseTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new InheritedTestsFromDifferentProjectTests_BaseTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTest_TestSource()); } } @@ -467,7 +467,7 @@ internal static class InheritedTestsFromDifferentProjectTests_BaseTest_ModuleIni #nullable enable namespace TUnit.Generated; -internal sealed class InheritedTestsFromDifferentProjectTests_BaseTestWithMultipleCategories_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTestWithMultipleCategories_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -535,391 +535,11 @@ internal sealed class InheritedTestsFromDifferentProjectTests_BaseTestWithMultip yield break; } } -internal static class InheritedTestsFromDifferentProjectTests_BaseTestWithMultipleCategories_ModuleInitializer_GUID +internal static class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTestWithMultipleCategories_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new InheritedTestsFromDifferentProjectTests_BaseTestWithMultipleCategories_TestSource_GUID()); - } -} - - -// ===== FILE SEPARATOR ===== - -// -#pragma warning disable - -#nullable enable -namespace TUnit.Generated; -internal sealed class InheritedTestsFromDifferentProjectTests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource -{ - public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) - { - var metadata = new global::TUnit.Core.TestMetadata - { - TestName = "Test", - TestClassType = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TestMethodName = "Test", - Dependencies = global::System.Array.Empty(), - AttributeFactory = () => - [ - new global::TUnit.Core.TestAttribute(), - new global::TUnit.TestProject.Attributes.EngineTest(Pass), - new global::TUnit.Core.InheritsTestsAttribute(), - new global::TUnit.Core.CategoryAttribute("BaseCategoriesOnClass") - ], - DataSources = global::System.Array.Empty(), - ClassDataSources = global::System.Array.Empty(), - PropertyDataSources = global::System.Array.Empty(), - PropertyInjections = global::System.Array.Empty(), - InheritanceDepth = 0, - FilePath = @"", - LineNumber = 5, - MethodMetadata = new global::TUnit.Core.MethodMetadata - { - Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), - Name = "Test", - GenericTypeCount = 0, - ReturnType = typeof(void), - ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), - Parameters = global::System.Array.Empty(), - Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests", () => - { - var classMetadata = new global::TUnit.Core.ClassMetadata - { - Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), - Name = "InheritedTestsFromDifferentProjectTests", - Namespace = "TUnit.TestProject", - Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), - Parameters = global::System.Array.Empty(), - Properties = global::System.Array.Empty(), - Parent = null - }; - foreach (var prop in classMetadata.Properties) - { - prop.ClassMetadata = classMetadata; - prop.ContainingTypeMetadata = classMetadata; - } - return classMetadata; - }) - }, - InstanceFactory = (typeArgs, args) => new global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests(), - InvokeTypedTest = async (instance, args, cancellationToken) => - { - instance.Test(); - await global::System.Threading.Tasks.Task.CompletedTask; - }, - }; - metadata.UseRuntimeDataGeneration(testSessionId); - yield return metadata; - yield break; - } -} -internal static class InheritedTestsFromDifferentProjectTests_Test_ModuleInitializer_GUID -{ - [global::System.Runtime.CompilerServices.ModuleInitializer] - public static void Initialize() - { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new InheritedTestsFromDifferentProjectTests_Test_TestSource_GUID()); - } -} - - -// ===== FILE SEPARATOR ===== - -// -#pragma warning disable - -#nullable enable -namespace TUnit.Generated; -internal sealed class InheritedTestsFromDifferentProjectTests_GenericMethodDataSource_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource -{ - public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) - { - var metadata = new global::TUnit.Core.TestMetadata - { - TestName = "GenericMethodDataSource", - TestClassType = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TestMethodName = "GenericMethodDataSource", - Dependencies = global::System.Array.Empty(), - AttributeFactory = () => - [ - new global::TUnit.Core.TestAttribute(), - new global::TUnit.TestProject.Attributes.EngineTest(Pass), - new global::TUnit.Core.InheritsTestsAttribute(), - new global::TUnit.Core.CategoryAttribute("BaseCategoriesOnClass") - ], - DataSources = new global::TUnit.Core.IDataSourceAttribute[] - { - new global::TUnit.Core.MethodDataSourceAttribute("Foo"), - }, - ClassDataSources = global::System.Array.Empty(), - PropertyDataSources = global::System.Array.Empty(), - PropertyInjections = global::System.Array.Empty(), - InheritanceDepth = 0, - FilePath = @"", - LineNumber = 5, - MethodMetadata = new global::TUnit.Core.MethodMetadata - { - Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), - Name = "GenericMethodDataSource", - GenericTypeCount = 0, - ReturnType = typeof(void), - ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), - Parameters = new global::TUnit.Core.ParameterMetadata[] - { - new global::TUnit.Core.ParameterMetadata(typeof(string)) - { - Name = "value", - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), - IsNullable = false, - ReflectionInfo = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests).GetMethod("GenericMethodDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] - } - }, - Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests", () => - { - var classMetadata = new global::TUnit.Core.ClassMetadata - { - Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), - Name = "InheritedTestsFromDifferentProjectTests", - Namespace = "TUnit.TestProject", - Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), - Parameters = global::System.Array.Empty(), - Properties = global::System.Array.Empty(), - Parent = null - }; - foreach (var prop in classMetadata.Properties) - { - prop.ClassMetadata = classMetadata; - prop.ContainingTypeMetadata = classMetadata; - } - return classMetadata; - }) - }, - InstanceFactory = (typeArgs, args) => new global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests(), - InvokeTypedTest = async (instance, args, cancellationToken) => - { - switch (args.Length) - { - case 1: - instance.GenericMethodDataSource(TUnit.Core.Helpers.CastHelper.Cast(args[0])); - break; - default: - throw new global::System.ArgumentException($"Expected exactly 1 argument, but got {args.Length}"); - } - await global::System.Threading.Tasks.Task.CompletedTask; - }, - }; - metadata.UseRuntimeDataGeneration(testSessionId); - yield return metadata; - yield break; - } -} -internal static class InheritedTestsFromDifferentProjectTests_GenericMethodDataSource_ModuleInitializer_GUID -{ - [global::System.Runtime.CompilerServices.ModuleInitializer] - public static void Initialize() - { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new InheritedTestsFromDifferentProjectTests_GenericMethodDataSource_TestSource_GUID()); - } -} - - -// ===== FILE SEPARATOR ===== - -// -#pragma warning disable - -#nullable enable -namespace TUnit.Generated; -internal sealed class InheritedTestsFromDifferentProjectTests_NonGenericMethodDataSource_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource -{ - public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) - { - var metadata = new global::TUnit.Core.TestMetadata - { - TestName = "NonGenericMethodDataSource", - TestClassType = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TestMethodName = "NonGenericMethodDataSource", - Dependencies = global::System.Array.Empty(), - AttributeFactory = () => - [ - new global::TUnit.Core.TestAttribute(), - new global::TUnit.TestProject.Attributes.EngineTest(Pass), - new global::TUnit.Core.InheritsTestsAttribute(), - new global::TUnit.Core.CategoryAttribute("BaseCategoriesOnClass") - ], - DataSources = new global::TUnit.Core.IDataSourceAttribute[] - { - new global::TUnit.Core.MethodDataSourceAttribute(typeof(global::TUnit.TestProject.TestData), "Foo") - { - Factory = (dataGeneratorMetadata) => - { - async global::System.Collections.Generic.IAsyncEnumerable>> Factory() - { - var result = global::TUnit.TestProject.TestData.Foo(); - yield return () => global::System.Threading.Tasks.Task.FromResult(global::TUnit.Core.Helpers.DataSourceHelpers.ToObjectArray(result)); - } - return Factory(); - } - }, - }, - ClassDataSources = global::System.Array.Empty(), - PropertyDataSources = global::System.Array.Empty(), - PropertyInjections = global::System.Array.Empty(), - InheritanceDepth = 0, - FilePath = @"", - LineNumber = 5, - MethodMetadata = new global::TUnit.Core.MethodMetadata - { - Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), - Name = "NonGenericMethodDataSource", - GenericTypeCount = 0, - ReturnType = typeof(void), - ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), - Parameters = new global::TUnit.Core.ParameterMetadata[] - { - new global::TUnit.Core.ParameterMetadata(typeof(string)) - { - Name = "value", - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), - IsNullable = false, - ReflectionInfo = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests).GetMethod("NonGenericMethodDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] - } - }, - Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests", () => - { - var classMetadata = new global::TUnit.Core.ClassMetadata - { - Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), - Name = "InheritedTestsFromDifferentProjectTests", - Namespace = "TUnit.TestProject", - Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), - Parameters = global::System.Array.Empty(), - Properties = global::System.Array.Empty(), - Parent = null - }; - foreach (var prop in classMetadata.Properties) - { - prop.ClassMetadata = classMetadata; - prop.ContainingTypeMetadata = classMetadata; - } - return classMetadata; - }) - }, - InstanceFactory = (typeArgs, args) => new global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests(), - InvokeTypedTest = async (instance, args, cancellationToken) => - { - switch (args.Length) - { - case 1: - instance.NonGenericMethodDataSource(TUnit.Core.Helpers.CastHelper.Cast(args[0])); - break; - default: - throw new global::System.ArgumentException($"Expected exactly 1 argument, but got {args.Length}"); - } - await global::System.Threading.Tasks.Task.CompletedTask; - }, - }; - metadata.UseRuntimeDataGeneration(testSessionId); - yield return metadata; - yield break; - } -} -internal static class InheritedTestsFromDifferentProjectTests_NonGenericMethodDataSource_ModuleInitializer_GUID -{ - [global::System.Runtime.CompilerServices.ModuleInitializer] - public static void Initialize() - { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new InheritedTestsFromDifferentProjectTests_NonGenericMethodDataSource_TestSource_GUID()); - } -} - - -// ===== FILE SEPARATOR ===== - -// -#pragma warning disable - -#nullable enable -namespace TUnit.Generated; -internal sealed class InheritedTestsFromDifferentProjectTests_VerifyInheritedCategoriesAreAvailable_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource -{ - public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) - { - var metadata = new global::TUnit.Core.TestMetadata - { - TestName = "VerifyInheritedCategoriesAreAvailable", - TestClassType = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TestMethodName = "VerifyInheritedCategoriesAreAvailable", - Dependencies = global::System.Array.Empty(), - AttributeFactory = () => - [ - new global::TUnit.Core.TestAttribute(), - new global::TUnit.TestProject.Attributes.EngineTest(Pass), - new global::TUnit.Core.InheritsTestsAttribute(), - new global::TUnit.Core.CategoryAttribute("BaseCategoriesOnClass") - ], - DataSources = global::System.Array.Empty(), - ClassDataSources = global::System.Array.Empty(), - PropertyDataSources = global::System.Array.Empty(), - PropertyInjections = global::System.Array.Empty(), - InheritanceDepth = 0, - FilePath = @"", - LineNumber = 5, - MethodMetadata = new global::TUnit.Core.MethodMetadata - { - Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), - Name = "VerifyInheritedCategoriesAreAvailable", - GenericTypeCount = 0, - ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), - Parameters = global::System.Array.Empty(), - Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests", () => - { - var classMetadata = new global::TUnit.Core.ClassMetadata - { - Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), - Name = "InheritedTestsFromDifferentProjectTests", - Namespace = "TUnit.TestProject", - Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), - Parameters = global::System.Array.Empty(), - Properties = global::System.Array.Empty(), - Parent = null - }; - foreach (var prop in classMetadata.Properties) - { - prop.ClassMetadata = classMetadata; - prop.ContainingTypeMetadata = classMetadata; - } - return classMetadata; - }) - }, - InstanceFactory = (typeArgs, args) => new global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests(), - InvokeTypedTest = async (instance, args, cancellationToken) => - { - await instance.VerifyInheritedCategoriesAreAvailable(); - }, - }; - metadata.UseRuntimeDataGeneration(testSessionId); - yield return metadata; - yield break; - } -} -internal static class InheritedTestsFromDifferentProjectTests_VerifyInheritedCategoriesAreAvailable_ModuleInitializer_GUID -{ - [global::System.Runtime.CompilerServices.ModuleInitializer] - public static void Initialize() - { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new InheritedTestsFromDifferentProjectTests_VerifyInheritedCategoriesAreAvailable_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), new TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTestWithMultipleCategories_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt index d707fe70a3..e65f62d62c 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,12 +68,12 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit. yield break; } } -internal static class ConcreteClass2_SecondTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new ConcreteClass2_SecondTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_TestSource()); } } @@ -85,7 +85,7 @@ internal static class ConcreteClass2_SecondTest_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -149,12 +149,12 @@ internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::T yield break; } } -internal static class ConcreteClass2_AssertClassName_ModuleInitializer_GUID +internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new ConcreteClass2_AssertClassName_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource()); } } @@ -166,89 +166,7 @@ internal static class ConcreteClass2_AssertClassName_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource -{ - public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) - { - var metadata = new global::TUnit.Core.TestMetadata - { - TestName = "SecondTest", - TestClassType = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TestMethodName = "SecondTest", - Dependencies = global::System.Array.Empty(), - AttributeFactory = () => - [ - new global::TUnit.Core.TestAttribute(), - new global::TUnit.Core.InheritsTestsAttribute(), - new global::TUnit.Core.InheritsTestsAttribute() - ], - DataSources = global::System.Array.Empty(), - ClassDataSources = global::System.Array.Empty(), - PropertyDataSources = global::System.Array.Empty(), - PropertyInjections = global::System.Array.Empty(), - InheritanceDepth = 0, - FilePath = @"", - LineNumber = 3, - MethodMetadata = new global::TUnit.Core.MethodMetadata - { - Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), - Name = "SecondTest", - GenericTypeCount = 0, - ReturnType = typeof(void), - ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), - Parameters = global::System.Array.Empty(), - Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => - { - var classMetadata = new global::TUnit.Core.ClassMetadata - { - Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), - Name = "ConcreteClass2", - Namespace = "TUnit.TestProject.AbstractTests", - Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), - Parameters = global::System.Array.Empty(), - Properties = global::System.Array.Empty(), - Parent = null - }; - foreach (var prop in classMetadata.Properties) - { - prop.ClassMetadata = classMetadata; - prop.ContainingTypeMetadata = classMetadata; - } - return classMetadata; - }) - }, - InstanceFactory = (typeArgs, args) => new global::TUnit.TestProject.AbstractTests.ConcreteClass2(), - InvokeTypedTest = async (instance, args, cancellationToken) => - { - instance.SecondTest(); - await global::System.Threading.Tasks.Task.CompletedTask; - }, - }; - metadata.UseRuntimeDataGeneration(testSessionId); - yield return metadata; - yield break; - } -} -internal static class ConcreteClass2_SecondTest_ModuleInitializer_GUID -{ - [global::System.Runtime.CompilerServices.ModuleInitializer] - public static void Initialize() - { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new ConcreteClass2_SecondTest_TestSource_GUID()); - } -} - - -// ===== FILE SEPARATOR ===== - -// -#pragma warning disable - -#nullable enable -namespace TUnit.Generated; -internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -311,11 +229,11 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T yield break; } } -internal static class ConcreteClass1_AssertClassName_ModuleInitializer_GUID +internal static class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), new ConcreteClass1_AssertClassName_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), new TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt index ec9d285ff6..01abfcc6ee 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class BaseClass_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1924_None_BaseClass_Test__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { #if NET8_0_OR_GREATER [global::System.Runtime.CompilerServices.UnsafeAccessor(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Field, Name = "k__BackingField")] @@ -134,12 +134,12 @@ internal sealed class BaseClass_Test_TestSource_GUID : global::TUnit.Core.Interf yield break; } } -internal static class BaseClass_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1924_None_BaseClass_Test__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass), new BaseClass_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass), new TUnit_TestProject_Bugs__1924_None_BaseClass_Test__int_TestSource()); } } @@ -151,7 +151,7 @@ internal static class BaseClass_Test_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1924_None_Tests_Test__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { #if NET8_0_OR_GREATER [global::System.Runtime.CompilerServices.UnsafeAccessor(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Field, Name = "k__BackingField")] @@ -270,12 +270,12 @@ internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces yield break; } } -internal static class Tests_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1924_None_Tests_Test__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1924.None.Tests), new Tests_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1924.None.Tests), new TUnit_TestProject_Bugs__1924_None_Tests_Test__int_TestSource()); } } @@ -287,7 +287,7 @@ internal static class Tests_Test_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class Tests2_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1924_None_Tests2_Test__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { #if NET8_0_OR_GREATER [global::System.Runtime.CompilerServices.UnsafeAccessor(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Field, Name = "k__BackingField")] @@ -406,12 +406,12 @@ internal sealed class Tests2_Test_TestSource_GUID : global::TUnit.Core.Interface yield break; } } -internal static class Tests2_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1924_None_Tests2_Test__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1924.None.Tests2), new Tests2_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1924.None.Tests2), new TUnit_TestProject_Bugs__1924_None_Tests2_Test__int_TestSource()); } } @@ -423,7 +423,7 @@ internal static class Tests2_Test_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class Tests3_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1924_None_Tests3_Test__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { #if NET8_0_OR_GREATER [global::System.Runtime.CompilerServices.UnsafeAccessor(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Field, Name = "k__BackingField")] @@ -542,11 +542,11 @@ internal sealed class Tests3_Test_TestSource_GUID : global::TUnit.Core.Interface yield break; } } -internal static class Tests3_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1924_None_Tests3_Test__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1924.None.Tests3), new Tests3_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1924.None.Tests3), new TUnit_TestProject_Bugs__1924_None_Tests3_Test__int_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt index bea8884396..e08e0e980c 100644 --- a/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ActualTestClass_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__Issue2887_ActualTestClass_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -80,11 +80,11 @@ internal sealed class ActualTestClass_Test1_TestSource_GUID : global::TUnit.Core yield break; } } -internal static class ActualTestClass_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__Issue2887_ActualTestClass_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._Issue2887.ActualTestClass), new ActualTestClass_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._Issue2887.ActualTestClass), new TUnit_TestProject_Bugs__Issue2887_ActualTestClass_Test1_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt index 3a0fcf13fe..34625e2e3b 100644 --- a/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_MatrixTest_One_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_MatrixTest_One__string_int_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -99,12 +99,12 @@ internal sealed class MatrixTests_MatrixTest_One_TestSource_GUID : global::TUnit yield break; } } -internal static class MatrixTests_MatrixTest_One_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_MatrixTest_One__string_int_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_MatrixTest_One_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_MatrixTest_One__string_int_bool_TestSource()); } } @@ -116,7 +116,7 @@ internal static class MatrixTests_MatrixTest_One_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_MatrixTest_Two_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_MatrixTest_Two__int_int_int_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -219,12 +219,12 @@ internal sealed class MatrixTests_MatrixTest_Two_TestSource_GUID : global::TUnit yield break; } } -internal static class MatrixTests_MatrixTest_Two_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_MatrixTest_Two__int_int_int_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_MatrixTest_Two_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_MatrixTest_Two__int_int_int_bool_TestSource()); } } @@ -236,7 +236,7 @@ internal static class MatrixTests_MatrixTest_Two_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_MatrixTest_Enum_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_MatrixTest_Enum__int_TestEnum_TestEnum__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -332,12 +332,12 @@ internal sealed class MatrixTests_MatrixTest_Enum_TestSource_GUID : global::TUni yield break; } } -internal static class MatrixTests_MatrixTest_Enum_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_MatrixTest_Enum__int_TestEnum_TestEnum__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_MatrixTest_Enum_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_MatrixTest_Enum__int_TestEnum_TestEnum__TestSource()); } } @@ -349,7 +349,7 @@ internal static class MatrixTests_MatrixTest_Enum_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_AutoGenerateBools_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_AutoGenerateBools__string_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -438,12 +438,12 @@ internal sealed class MatrixTests_AutoGenerateBools_TestSource_GUID : global::TU yield break; } } -internal static class MatrixTests_AutoGenerateBools_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_AutoGenerateBools__string_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_AutoGenerateBools_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_AutoGenerateBools__string_bool_TestSource()); } } @@ -455,7 +455,7 @@ internal static class MatrixTests_AutoGenerateBools_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_AutoGenerateBools2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_AutoGenerateBools2__string_bool__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -544,12 +544,12 @@ internal sealed class MatrixTests_AutoGenerateBools2_TestSource_GUID : global::T yield break; } } -internal static class MatrixTests_AutoGenerateBools2_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_AutoGenerateBools2__string_bool__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_AutoGenerateBools2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_AutoGenerateBools2__string_bool__TestSource()); } } @@ -561,7 +561,7 @@ internal static class MatrixTests_AutoGenerateBools2_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_ImplicitConversion_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_ImplicitConversion__OneOf_TestEnum__TestEnum2__bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -650,12 +650,12 @@ internal sealed class MatrixTests_ImplicitConversion_TestSource_GUID : global::T yield break; } } -internal static class MatrixTests_ImplicitConversion_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_ImplicitConversion__OneOf_TestEnum__TestEnum2__bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_ImplicitConversion_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_ImplicitConversion__OneOf_TestEnum__TestEnum2__bool_TestSource()); } } @@ -667,7 +667,7 @@ internal static class MatrixTests_ImplicitConversion_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_ExcludingAutoGeneratedMatrixValues_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_ExcludingAutoGeneratedMatrixValues__CountToTenEnum_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -756,12 +756,12 @@ internal sealed class MatrixTests_ExcludingAutoGeneratedMatrixValues_TestSource_ yield break; } } -internal static class MatrixTests_ExcludingAutoGeneratedMatrixValues_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_ExcludingAutoGeneratedMatrixValues__CountToTenEnum_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_ExcludingAutoGeneratedMatrixValues_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_ExcludingAutoGeneratedMatrixValues__CountToTenEnum_bool_TestSource()); } } @@ -773,7 +773,7 @@ internal static class MatrixTests_ExcludingAutoGeneratedMatrixValues_ModuleIniti #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_Method1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_Method1__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -855,12 +855,12 @@ internal sealed class MatrixTests_Method1_TestSource_GUID : global::TUnit.Core.I yield break; } } -internal static class MatrixTests_Method1_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_Method1__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_Method1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_Method1__int_TestSource()); } } @@ -872,7 +872,7 @@ internal static class MatrixTests_Method1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_Method2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_Method2__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -954,12 +954,12 @@ internal sealed class MatrixTests_Method2_TestSource_GUID : global::TUnit.Core.I yield break; } } -internal static class MatrixTests_Method2_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_Method2__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_Method2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_Method2__int_TestSource()); } } @@ -971,7 +971,7 @@ internal static class MatrixTests_Method2_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_Method3_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_Method3__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1053,12 +1053,12 @@ internal sealed class MatrixTests_Method3_TestSource_GUID : global::TUnit.Core.I yield break; } } -internal static class MatrixTests_Method3_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_Method3__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_Method3_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_Method3__int_TestSource()); } } @@ -1070,7 +1070,7 @@ internal static class MatrixTests_Method3_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_Method4_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_Method4__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1152,12 +1152,12 @@ internal sealed class MatrixTests_Method4_TestSource_GUID : global::TUnit.Core.I yield break; } } -internal static class MatrixTests_Method4_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_Method4__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_Method4_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_Method4__int_TestSource()); } } @@ -1169,7 +1169,7 @@ internal static class MatrixTests_Method4_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class MatrixTests_Exclusion_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MatrixTests_Exclusion__int_int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1261,11 +1261,11 @@ internal sealed class MatrixTests_Exclusion_TestSource_GUID : global::TUnit.Core yield break; } } -internal static class MatrixTests_Exclusion_ModuleInitializer_GUID +internal static class TUnit_TestProject_MatrixTests_Exclusion__int_int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new MatrixTests_Exclusion_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MatrixTests), new TUnit_TestProject_MatrixTests_Exclusion__int_int_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt index 57b813f643..c6a4096605 100644 --- a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class MethodDataSourceDrivenTests_DataSource_Method_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -97,12 +97,12 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method_TestSource_G yield break; } } -internal static class MethodDataSourceDrivenTests_DataSource_Method_ModuleInitializer_GUID +internal static class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new MethodDataSourceDrivenTests_DataSource_Method_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method__int_TestSource()); } } @@ -114,7 +114,7 @@ internal static class MethodDataSourceDrivenTests_DataSource_Method_ModuleInitia #nullable enable namespace TUnit.Generated; -internal sealed class MethodDataSourceDrivenTests_DataSource_Method2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method2__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -208,12 +208,12 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method2_TestSource_ yield break; } } -internal static class MethodDataSourceDrivenTests_DataSource_Method2_ModuleInitializer_GUID +internal static class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method2__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new MethodDataSourceDrivenTests_DataSource_Method2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method2__int_TestSource()); } } @@ -225,7 +225,7 @@ internal static class MethodDataSourceDrivenTests_DataSource_Method2_ModuleIniti #nullable enable namespace TUnit.Generated; -internal sealed class MethodDataSourceDrivenTests_DataSource_Method_WithAction_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method_WithAction__Action_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -319,12 +319,12 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method_WithAction_T yield break; } } -internal static class MethodDataSourceDrivenTests_DataSource_Method_WithAction_ModuleInitializer_GUID +internal static class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method_WithAction__Action_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new MethodDataSourceDrivenTests_DataSource_Method_WithAction_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method_WithAction__Action_TestSource()); } } @@ -336,7 +336,7 @@ internal static class MethodDataSourceDrivenTests_DataSource_Method_WithAction_M #nullable enable namespace TUnit.Generated; -internal sealed class MethodDataSourceDrivenTests_DataSource_Method3_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method3__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -445,12 +445,12 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method3_TestSource_ yield break; } } -internal static class MethodDataSourceDrivenTests_DataSource_Method3_ModuleInitializer_GUID +internal static class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method3__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new MethodDataSourceDrivenTests_DataSource_Method3_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method3__int_TestSource()); } } @@ -462,7 +462,7 @@ internal static class MethodDataSourceDrivenTests_DataSource_Method3_ModuleIniti #nullable enable namespace TUnit.Generated; -internal sealed class MethodDataSourceDrivenTests_DataSource_Method4_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method4__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -598,12 +598,12 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method4_TestSource_ yield break; } } -internal static class MethodDataSourceDrivenTests_DataSource_Method4_ModuleInitializer_GUID +internal static class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method4__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new MethodDataSourceDrivenTests_DataSource_Method4_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_Method4__int_TestSource()); } } @@ -615,7 +615,7 @@ internal static class MethodDataSourceDrivenTests_DataSource_Method4_ModuleIniti #nullable enable namespace TUnit.Generated; -internal sealed class MethodDataSourceDrivenTests_DataSource_WithBaseReturn_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_WithBaseReturn__BaseValue_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -709,12 +709,12 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_WithBaseReturn_Test yield break; } } -internal static class MethodDataSourceDrivenTests_DataSource_WithBaseReturn_ModuleInitializer_GUID +internal static class TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_WithBaseReturn__BaseValue_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new MethodDataSourceDrivenTests_DataSource_WithBaseReturn_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new TUnit_TestProject_MethodDataSourceDrivenTests_DataSource_WithBaseReturn__BaseValue_TestSource()); } } @@ -726,7 +726,7 @@ internal static class MethodDataSourceDrivenTests_DataSource_WithBaseReturn_Modu #nullable enable namespace TUnit.Generated; -internal sealed class MethodDataSourceDrivenTests_EnumerableFuncArrayTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MethodDataSourceDrivenTests_EnumerableFuncArrayTest__string___TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -829,11 +829,11 @@ internal sealed class MethodDataSourceDrivenTests_EnumerableFuncArrayTest_TestSo yield break; } } -internal static class MethodDataSourceDrivenTests_EnumerableFuncArrayTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_MethodDataSourceDrivenTests_EnumerableFuncArrayTest__string___ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new MethodDataSourceDrivenTests_EnumerableFuncArrayTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), new TUnit_TestProject_MethodDataSourceDrivenTests_EnumerableFuncArrayTest__string___TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt index 1eaea23564..75524c29cb 100644 --- a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class MethodDataSourceDrivenWithCancellationTokenTests_MyTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MethodDataSourceDrivenWithCancellationTokenTests_MyTest__int_CancellationToken_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -206,11 +206,11 @@ internal sealed class MethodDataSourceDrivenWithCancellationTokenTests_MyTest_Te yield break; } } -internal static class MethodDataSourceDrivenWithCancellationTokenTests_MyTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_MethodDataSourceDrivenWithCancellationTokenTests_MyTest__int_CancellationToken_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests), new MethodDataSourceDrivenWithCancellationTokenTests_MyTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests), new TUnit_TestProject_MethodDataSourceDrivenWithCancellationTokenTests_MyTest__int_CancellationToken_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt index d2eb0561e2..542f2f0347 100644 --- a/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class MultipleClassDataSourceDrivenTests_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MultipleClassDataSourceDrivenTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -113,12 +113,12 @@ internal sealed class MultipleClassDataSourceDrivenTests_Test1_TestSource_GUID : yield break; } } -internal static class MultipleClassDataSourceDrivenTests_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_MultipleClassDataSourceDrivenTests_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests), new MultipleClassDataSourceDrivenTests_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests), new TUnit_TestProject_MultipleClassDataSourceDrivenTests_Test1_TestSource()); } } @@ -130,7 +130,7 @@ internal static class MultipleClassDataSourceDrivenTests_Test1_ModuleInitializer #nullable enable namespace TUnit.Generated; -internal sealed class MultipleClassDataSourceDrivenTests_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_MultipleClassDataSourceDrivenTests_Test2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -240,11 +240,11 @@ internal sealed class MultipleClassDataSourceDrivenTests_Test2_TestSource_GUID : yield break; } } -internal static class MultipleClassDataSourceDrivenTests_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_MultipleClassDataSourceDrivenTests_Test2_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests), new MultipleClassDataSourceDrivenTests_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests), new TUnit_TestProject_MultipleClassDataSourceDrivenTests_Test2_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt index 7c31faacbb..0d56eb08f4 100644 --- a/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class NameOfArgumentTests_TestName_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NameOfArgumentTests_TestName__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -85,11 +85,11 @@ internal sealed class NameOfArgumentTests_TestName_TestSource_GUID : global::TUn yield break; } } -internal static class NameOfArgumentTests_TestName_ModuleInitializer_GUID +internal static class TUnit_TestProject_NameOfArgumentTests_TestName__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NameOfArgumentTests), new NameOfArgumentTests_TestName_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NameOfArgumentTests), new TUnit_TestProject_NameOfArgumentTests_TestName__string_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt index 8b0b835493..51c6bd9019 100644 --- a/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class NullableByteArgumentTests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NullableByteArgumentTests_Test__byte__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -87,12 +87,12 @@ internal sealed class NullableByteArgumentTests_Test_TestSource_GUID : global::T yield break; } } -internal static class NullableByteArgumentTests_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_NullableByteArgumentTests_Test__byte__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NullableByteArgumentTests), new NullableByteArgumentTests_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NullableByteArgumentTests), new TUnit_TestProject_NullableByteArgumentTests_Test__byte__TestSource()); } } @@ -104,7 +104,7 @@ internal static class NullableByteArgumentTests_Test_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NullableByteArgumentTests_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NullableByteArgumentTests_Test2__byte_byte__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -195,11 +195,11 @@ internal sealed class NullableByteArgumentTests_Test2_TestSource_GUID : global:: yield break; } } -internal static class NullableByteArgumentTests_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_NullableByteArgumentTests_Test2__byte_byte__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NullableByteArgumentTests), new NullableByteArgumentTests_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NullableByteArgumentTests), new TUnit_TestProject_NullableByteArgumentTests_Test2__byte_byte__TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt index 232c005380..ff27d61028 100644 --- a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_Int_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_Int__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -86,12 +86,12 @@ internal sealed class NumberArgumentTests_Int_TestSource_GUID : global::TUnit.Co yield break; } } -internal static class NumberArgumentTests_Int_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_Int__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_Int_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_Int__int_TestSource()); } } @@ -103,7 +103,7 @@ internal static class NumberArgumentTests_Int_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_Double_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_Double__double_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -186,12 +186,12 @@ internal sealed class NumberArgumentTests_Double_TestSource_GUID : global::TUnit yield break; } } -internal static class NumberArgumentTests_Double_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_Double__double_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_Double_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_Double__double_TestSource()); } } @@ -203,7 +203,7 @@ internal static class NumberArgumentTests_Double_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_Float_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_Float__float_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -286,12 +286,12 @@ internal sealed class NumberArgumentTests_Float_TestSource_GUID : global::TUnit. yield break; } } -internal static class NumberArgumentTests_Float_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_Float__float_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_Float_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_Float__float_TestSource()); } } @@ -303,7 +303,7 @@ internal static class NumberArgumentTests_Float_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_Long_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_Long__long_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -386,12 +386,12 @@ internal sealed class NumberArgumentTests_Long_TestSource_GUID : global::TUnit.C yield break; } } -internal static class NumberArgumentTests_Long_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_Long__long_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_Long_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_Long__long_TestSource()); } } @@ -403,7 +403,7 @@ internal static class NumberArgumentTests_Long_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_ULong_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_ULong__ulong_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -486,12 +486,12 @@ internal sealed class NumberArgumentTests_ULong_TestSource_GUID : global::TUnit. yield break; } } -internal static class NumberArgumentTests_ULong_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_ULong__ulong_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_ULong_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_ULong__ulong_TestSource()); } } @@ -503,7 +503,7 @@ internal static class NumberArgumentTests_ULong_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_UInt_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_UInt__uint_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -586,11 +586,11 @@ internal sealed class NumberArgumentTests_UInt_TestSource_GUID : global::TUnit.C yield break; } } -internal static class NumberArgumentTests_UInt_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_UInt__uint_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_UInt_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_UInt__uint_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt index 232c005380..ff27d61028 100644 --- a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_Int_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_Int__int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -86,12 +86,12 @@ internal sealed class NumberArgumentTests_Int_TestSource_GUID : global::TUnit.Co yield break; } } -internal static class NumberArgumentTests_Int_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_Int__int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_Int_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_Int__int_TestSource()); } } @@ -103,7 +103,7 @@ internal static class NumberArgumentTests_Int_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_Double_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_Double__double_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -186,12 +186,12 @@ internal sealed class NumberArgumentTests_Double_TestSource_GUID : global::TUnit yield break; } } -internal static class NumberArgumentTests_Double_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_Double__double_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_Double_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_Double__double_TestSource()); } } @@ -203,7 +203,7 @@ internal static class NumberArgumentTests_Double_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_Float_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_Float__float_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -286,12 +286,12 @@ internal sealed class NumberArgumentTests_Float_TestSource_GUID : global::TUnit. yield break; } } -internal static class NumberArgumentTests_Float_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_Float__float_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_Float_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_Float__float_TestSource()); } } @@ -303,7 +303,7 @@ internal static class NumberArgumentTests_Float_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_Long_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_Long__long_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -386,12 +386,12 @@ internal sealed class NumberArgumentTests_Long_TestSource_GUID : global::TUnit.C yield break; } } -internal static class NumberArgumentTests_Long_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_Long__long_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_Long_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_Long__long_TestSource()); } } @@ -403,7 +403,7 @@ internal static class NumberArgumentTests_Long_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_ULong_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_ULong__ulong_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -486,12 +486,12 @@ internal sealed class NumberArgumentTests_ULong_TestSource_GUID : global::TUnit. yield break; } } -internal static class NumberArgumentTests_ULong_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_ULong__ulong_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_ULong_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_ULong__ulong_TestSource()); } } @@ -503,7 +503,7 @@ internal static class NumberArgumentTests_ULong_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class NumberArgumentTests_UInt_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_NumberArgumentTests_UInt__uint_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -586,11 +586,11 @@ internal sealed class NumberArgumentTests_UInt_TestSource_GUID : global::TUnit.C yield break; } } -internal static class NumberArgumentTests_UInt_ModuleInitializer_GUID +internal static class TUnit_TestProject_NumberArgumentTests_UInt__uint_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new NumberArgumentTests_UInt_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.NumberArgumentTests), new TUnit_TestProject_NumberArgumentTests_UInt__uint_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt index e898fd0735..0b262595c3 100644 --- a/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class PriorityFilteringTests_High_1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_PriorityFilteringTests_High_1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,12 +66,12 @@ internal sealed class PriorityFilteringTests_High_1_TestSource_GUID : global::TU yield break; } } -internal static class PriorityFilteringTests_High_1_ModuleInitializer_GUID +internal static class TUnit_TestProject_PriorityFilteringTests_High_1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new PriorityFilteringTests_High_1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new TUnit_TestProject_PriorityFilteringTests_High_1_TestSource()); } } @@ -83,7 +83,7 @@ internal static class PriorityFilteringTests_High_1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class PriorityFilteringTests_High_2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_PriorityFilteringTests_High_2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -146,12 +146,12 @@ internal sealed class PriorityFilteringTests_High_2_TestSource_GUID : global::TU yield break; } } -internal static class PriorityFilteringTests_High_2_ModuleInitializer_GUID +internal static class TUnit_TestProject_PriorityFilteringTests_High_2_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new PriorityFilteringTests_High_2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new TUnit_TestProject_PriorityFilteringTests_High_2_TestSource()); } } @@ -163,7 +163,7 @@ internal static class PriorityFilteringTests_High_2_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class PriorityFilteringTests_High_3_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_PriorityFilteringTests_High_3_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -226,12 +226,12 @@ internal sealed class PriorityFilteringTests_High_3_TestSource_GUID : global::TU yield break; } } -internal static class PriorityFilteringTests_High_3_ModuleInitializer_GUID +internal static class TUnit_TestProject_PriorityFilteringTests_High_3_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new PriorityFilteringTests_High_3_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new TUnit_TestProject_PriorityFilteringTests_High_3_TestSource()); } } @@ -243,7 +243,7 @@ internal static class PriorityFilteringTests_High_3_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class PriorityFilteringTests_Medium_1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_PriorityFilteringTests_Medium_1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -306,12 +306,12 @@ internal sealed class PriorityFilteringTests_Medium_1_TestSource_GUID : global:: yield break; } } -internal static class PriorityFilteringTests_Medium_1_ModuleInitializer_GUID +internal static class TUnit_TestProject_PriorityFilteringTests_Medium_1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new PriorityFilteringTests_Medium_1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new TUnit_TestProject_PriorityFilteringTests_Medium_1_TestSource()); } } @@ -323,7 +323,7 @@ internal static class PriorityFilteringTests_Medium_1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class PriorityFilteringTests_Medium_2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_PriorityFilteringTests_Medium_2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -386,12 +386,12 @@ internal sealed class PriorityFilteringTests_Medium_2_TestSource_GUID : global:: yield break; } } -internal static class PriorityFilteringTests_Medium_2_ModuleInitializer_GUID +internal static class TUnit_TestProject_PriorityFilteringTests_Medium_2_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new PriorityFilteringTests_Medium_2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new TUnit_TestProject_PriorityFilteringTests_Medium_2_TestSource()); } } @@ -403,7 +403,7 @@ internal static class PriorityFilteringTests_Medium_2_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class PriorityFilteringTests_Low_1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_PriorityFilteringTests_Low_1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -466,11 +466,11 @@ internal sealed class PriorityFilteringTests_Low_1_TestSource_GUID : global::TUn yield break; } } -internal static class PriorityFilteringTests_Low_1_ModuleInitializer_GUID +internal static class TUnit_TestProject_PriorityFilteringTests_Low_1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new PriorityFilteringTests_Low_1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PriorityFilteringTests), new TUnit_TestProject_PriorityFilteringTests_Low_1_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt index 393b67c291..de23b46bef 100644 --- a/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class PropertySetterTests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_PropertySetterTests_Test_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { #if NET8_0_OR_GREATER [global::System.Runtime.CompilerServices.UnsafeAccessor(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Field, Name = "k__BackingField")] @@ -330,11 +330,11 @@ internal sealed class PropertySetterTests_Test_TestSource_GUID : global::TUnit.C yield break; } } -internal static class PropertySetterTests_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_PropertySetterTests_Test_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PropertySetterTests), new PropertySetterTests_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.PropertySetterTests), new TUnit_TestProject_PropertySetterTests_Test_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt index 93bb58d725..c039f11e1a 100644 --- a/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class RepeatTests_One_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_RepeatTests_One_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -69,12 +69,12 @@ internal sealed class RepeatTests_One_TestSource_GUID : global::TUnit.Core.Inter yield break; } } -internal static class RepeatTests_One_ModuleInitializer_GUID +internal static class TUnit_TestProject_RepeatTests_One_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.RepeatTests), new RepeatTests_One_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.RepeatTests), new TUnit_TestProject_RepeatTests_One_TestSource()); } } @@ -86,7 +86,7 @@ internal static class RepeatTests_One_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class RepeatTests_Two_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_RepeatTests_Two_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -152,12 +152,12 @@ internal sealed class RepeatTests_Two_TestSource_GUID : global::TUnit.Core.Inter yield break; } } -internal static class RepeatTests_Two_ModuleInitializer_GUID +internal static class TUnit_TestProject_RepeatTests_Two_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.RepeatTests), new RepeatTests_Two_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.RepeatTests), new TUnit_TestProject_RepeatTests_Two_TestSource()); } } @@ -169,7 +169,7 @@ internal static class RepeatTests_Two_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class RepeatTests_Three_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_RepeatTests_Three_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -234,11 +234,11 @@ internal sealed class RepeatTests_Three_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class RepeatTests_Three_ModuleInitializer_GUID +internal static class TUnit_TestProject_RepeatTests_Three_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.RepeatTests), new RepeatTests_Three_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.RepeatTests), new TUnit_TestProject_RepeatTests_Three_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet10_0.verified.txt index e869041ae4..7c83ebe681 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet10_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_With_STA_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -70,12 +70,12 @@ internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Co yield break; } } -internal static class STAThreadTests_With_STA_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_With_STA_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_With_STA_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_With_STA_TestSource()); } } @@ -87,7 +87,7 @@ internal static class STAThreadTests_With_STA_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_Without_STA_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -153,12 +153,12 @@ internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit yield break; } } -internal static class STAThreadTests_Without_STA_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_Without_STA_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_Without_STA_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_Without_STA_TestSource()); } } @@ -170,7 +170,7 @@ internal static class STAThreadTests_Without_STA_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -237,12 +237,12 @@ internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : globa yield break; } } -internal static class STAThreadTests_STA_WithSimpleAwait_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithSimpleAwait_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_TestSource()); } } @@ -254,7 +254,7 @@ internal static class STAThreadTests_STA_WithSimpleAwait_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskYield_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -321,12 +321,12 @@ internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global: yield break; } } -internal static class STAThreadTests_STA_WithTaskYield_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskYield_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskYield_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskYield_TestSource()); } } @@ -338,7 +338,7 @@ internal static class STAThreadTests_STA_WithTaskYield_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -405,12 +405,12 @@ internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID yield break; } } -internal static class STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_TestSource()); } } @@ -422,7 +422,7 @@ internal static class STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitialize #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -489,12 +489,12 @@ internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : yield break; } } -internal static class STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_TestSource()); } } @@ -506,7 +506,7 @@ internal static class STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer_ #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -573,12 +573,12 @@ internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : gl yield break; } } -internal static class STAThreadTests_STA_WithTaskFromResult_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskFromResult_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_TestSource()); } } @@ -590,7 +590,7 @@ internal static class STAThreadTests_STA_WithTaskFromResult_ModuleInitializer_GU #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -657,12 +657,12 @@ internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : glo yield break; } } -internal static class STAThreadTests_STA_WithCompletedTask_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithCompletedTask_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_TestSource()); } } @@ -674,7 +674,7 @@ internal static class STAThreadTests_STA_WithCompletedTask_ModuleInitializer_GUI #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskRun_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -741,12 +741,12 @@ internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::T yield break; } } -internal static class STAThreadTests_STA_WithTaskRun_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskRun_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskRun_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskRun_TestSource()); } } @@ -758,7 +758,7 @@ internal static class STAThreadTests_STA_WithTaskRun_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -825,12 +825,12 @@ internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : gl yield break; } } -internal static class STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_TestSource()); } } @@ -842,7 +842,7 @@ internal static class STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer_GU #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -909,12 +909,12 @@ internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : g yield break; } } -internal static class STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_TestSource()); } } @@ -926,7 +926,7 @@ internal static class STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer_G #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -993,12 +993,12 @@ internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : globa yield break; } } -internal static class STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_TestSource()); } } @@ -1010,7 +1010,7 @@ internal static class STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1077,12 +1077,12 @@ internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : yield break; } } -internal static class STAThreadTests_STA_WithExceptionHandling_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithExceptionHandling_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_TestSource()); } } @@ -1094,7 +1094,7 @@ internal static class STAThreadTests_STA_WithExceptionHandling_ModuleInitializer #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1161,12 +1161,12 @@ internal sealed class STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_G yield break; } } -internal static class STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_TestSource()); } } @@ -1178,7 +1178,7 @@ internal static class STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitia #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithFuncAssertion_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1245,11 +1245,11 @@ internal sealed class STAThreadTests_STA_WithFuncAssertion_TestSource_GUID : glo yield break; } } -internal static class STAThreadTests_STA_WithFuncAssertion_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithFuncAssertion_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet8_0.verified.txt index e869041ae4..7c83ebe681 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet8_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_With_STA_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -70,12 +70,12 @@ internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Co yield break; } } -internal static class STAThreadTests_With_STA_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_With_STA_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_With_STA_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_With_STA_TestSource()); } } @@ -87,7 +87,7 @@ internal static class STAThreadTests_With_STA_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_Without_STA_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -153,12 +153,12 @@ internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit yield break; } } -internal static class STAThreadTests_Without_STA_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_Without_STA_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_Without_STA_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_Without_STA_TestSource()); } } @@ -170,7 +170,7 @@ internal static class STAThreadTests_Without_STA_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -237,12 +237,12 @@ internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : globa yield break; } } -internal static class STAThreadTests_STA_WithSimpleAwait_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithSimpleAwait_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_TestSource()); } } @@ -254,7 +254,7 @@ internal static class STAThreadTests_STA_WithSimpleAwait_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskYield_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -321,12 +321,12 @@ internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global: yield break; } } -internal static class STAThreadTests_STA_WithTaskYield_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskYield_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskYield_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskYield_TestSource()); } } @@ -338,7 +338,7 @@ internal static class STAThreadTests_STA_WithTaskYield_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -405,12 +405,12 @@ internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID yield break; } } -internal static class STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_TestSource()); } } @@ -422,7 +422,7 @@ internal static class STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitialize #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -489,12 +489,12 @@ internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : yield break; } } -internal static class STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_TestSource()); } } @@ -506,7 +506,7 @@ internal static class STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer_ #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -573,12 +573,12 @@ internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : gl yield break; } } -internal static class STAThreadTests_STA_WithTaskFromResult_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskFromResult_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_TestSource()); } } @@ -590,7 +590,7 @@ internal static class STAThreadTests_STA_WithTaskFromResult_ModuleInitializer_GU #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -657,12 +657,12 @@ internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : glo yield break; } } -internal static class STAThreadTests_STA_WithCompletedTask_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithCompletedTask_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_TestSource()); } } @@ -674,7 +674,7 @@ internal static class STAThreadTests_STA_WithCompletedTask_ModuleInitializer_GUI #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskRun_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -741,12 +741,12 @@ internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::T yield break; } } -internal static class STAThreadTests_STA_WithTaskRun_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskRun_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskRun_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskRun_TestSource()); } } @@ -758,7 +758,7 @@ internal static class STAThreadTests_STA_WithTaskRun_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -825,12 +825,12 @@ internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : gl yield break; } } -internal static class STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_TestSource()); } } @@ -842,7 +842,7 @@ internal static class STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer_GU #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -909,12 +909,12 @@ internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : g yield break; } } -internal static class STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_TestSource()); } } @@ -926,7 +926,7 @@ internal static class STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer_G #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -993,12 +993,12 @@ internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : globa yield break; } } -internal static class STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_TestSource()); } } @@ -1010,7 +1010,7 @@ internal static class STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1077,12 +1077,12 @@ internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : yield break; } } -internal static class STAThreadTests_STA_WithExceptionHandling_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithExceptionHandling_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_TestSource()); } } @@ -1094,7 +1094,7 @@ internal static class STAThreadTests_STA_WithExceptionHandling_ModuleInitializer #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1161,12 +1161,12 @@ internal sealed class STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_G yield break; } } -internal static class STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_TestSource()); } } @@ -1178,7 +1178,7 @@ internal static class STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitia #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithFuncAssertion_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1245,11 +1245,11 @@ internal sealed class STAThreadTests_STA_WithFuncAssertion_TestSource_GUID : glo yield break; } } -internal static class STAThreadTests_STA_WithFuncAssertion_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithFuncAssertion_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet9_0.verified.txt index e869041ae4..7c83ebe681 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet9_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_With_STA_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -70,12 +70,12 @@ internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Co yield break; } } -internal static class STAThreadTests_With_STA_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_With_STA_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_With_STA_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_With_STA_TestSource()); } } @@ -87,7 +87,7 @@ internal static class STAThreadTests_With_STA_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_Without_STA_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -153,12 +153,12 @@ internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit yield break; } } -internal static class STAThreadTests_Without_STA_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_Without_STA_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_Without_STA_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_Without_STA_TestSource()); } } @@ -170,7 +170,7 @@ internal static class STAThreadTests_Without_STA_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -237,12 +237,12 @@ internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : globa yield break; } } -internal static class STAThreadTests_STA_WithSimpleAwait_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithSimpleAwait_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_TestSource()); } } @@ -254,7 +254,7 @@ internal static class STAThreadTests_STA_WithSimpleAwait_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskYield_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -321,12 +321,12 @@ internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global: yield break; } } -internal static class STAThreadTests_STA_WithTaskYield_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskYield_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskYield_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskYield_TestSource()); } } @@ -338,7 +338,7 @@ internal static class STAThreadTests_STA_WithTaskYield_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -405,12 +405,12 @@ internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID yield break; } } -internal static class STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_TestSource()); } } @@ -422,7 +422,7 @@ internal static class STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitialize #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -489,12 +489,12 @@ internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : yield break; } } -internal static class STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_TestSource()); } } @@ -506,7 +506,7 @@ internal static class STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer_ #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -573,12 +573,12 @@ internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : gl yield break; } } -internal static class STAThreadTests_STA_WithTaskFromResult_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskFromResult_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_TestSource()); } } @@ -590,7 +590,7 @@ internal static class STAThreadTests_STA_WithTaskFromResult_ModuleInitializer_GU #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -657,12 +657,12 @@ internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : glo yield break; } } -internal static class STAThreadTests_STA_WithCompletedTask_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithCompletedTask_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_TestSource()); } } @@ -674,7 +674,7 @@ internal static class STAThreadTests_STA_WithCompletedTask_ModuleInitializer_GUI #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskRun_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -741,12 +741,12 @@ internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::T yield break; } } -internal static class STAThreadTests_STA_WithTaskRun_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskRun_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskRun_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskRun_TestSource()); } } @@ -758,7 +758,7 @@ internal static class STAThreadTests_STA_WithTaskRun_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -825,12 +825,12 @@ internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : gl yield break; } } -internal static class STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_TestSource()); } } @@ -842,7 +842,7 @@ internal static class STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer_GU #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -909,12 +909,12 @@ internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : g yield break; } } -internal static class STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_TestSource()); } } @@ -926,7 +926,7 @@ internal static class STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer_G #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -993,12 +993,12 @@ internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : globa yield break; } } -internal static class STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_TestSource()); } } @@ -1010,7 +1010,7 @@ internal static class STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1077,12 +1077,12 @@ internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : yield break; } } -internal static class STAThreadTests_STA_WithExceptionHandling_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithExceptionHandling_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_TestSource()); } } @@ -1094,7 +1094,7 @@ internal static class STAThreadTests_STA_WithExceptionHandling_ModuleInitializer #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1161,12 +1161,12 @@ internal sealed class STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_G yield break; } } -internal static class STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_TestSource()); } } @@ -1178,7 +1178,7 @@ internal static class STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitia #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithFuncAssertion_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1245,11 +1245,11 @@ internal sealed class STAThreadTests_STA_WithFuncAssertion_TestSource_GUID : glo yield break; } } -internal static class STAThreadTests_STA_WithFuncAssertion_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithFuncAssertion_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.Net4_7.verified.txt index a31a6cc141..1c8f0a235c 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.Net4_7.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_With_STA_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -70,12 +70,12 @@ internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Co yield break; } } -internal static class STAThreadTests_With_STA_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_With_STA_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_With_STA_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_With_STA_TestSource()); } } @@ -87,7 +87,7 @@ internal static class STAThreadTests_With_STA_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_Without_STA_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -153,12 +153,12 @@ internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit yield break; } } -internal static class STAThreadTests_Without_STA_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_Without_STA_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_Without_STA_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_Without_STA_TestSource()); } } @@ -170,7 +170,7 @@ internal static class STAThreadTests_Without_STA_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -237,12 +237,12 @@ internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : globa yield break; } } -internal static class STAThreadTests_STA_WithSimpleAwait_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithSimpleAwait_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithSimpleAwait_TestSource()); } } @@ -254,7 +254,7 @@ internal static class STAThreadTests_STA_WithSimpleAwait_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskYield_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -321,12 +321,12 @@ internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global: yield break; } } -internal static class STAThreadTests_STA_WithTaskYield_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskYield_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskYield_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskYield_TestSource()); } } @@ -338,7 +338,7 @@ internal static class STAThreadTests_STA_WithTaskYield_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -405,12 +405,12 @@ internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID yield break; } } -internal static class STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithConfigureAwaitTrue_TestSource()); } } @@ -422,7 +422,7 @@ internal static class STAThreadTests_STA_WithConfigureAwaitTrue_ModuleInitialize #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -489,12 +489,12 @@ internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : yield break; } } -internal static class STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithNestedAsyncCalls_TestSource()); } } @@ -506,7 +506,7 @@ internal static class STAThreadTests_STA_WithNestedAsyncCalls_ModuleInitializer_ #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -573,12 +573,12 @@ internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : gl yield break; } } -internal static class STAThreadTests_STA_WithTaskFromResult_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskFromResult_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskFromResult_TestSource()); } } @@ -590,7 +590,7 @@ internal static class STAThreadTests_STA_WithTaskFromResult_ModuleInitializer_GU #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -657,12 +657,12 @@ internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : glo yield break; } } -internal static class STAThreadTests_STA_WithCompletedTask_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithCompletedTask_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithCompletedTask_TestSource()); } } @@ -674,7 +674,7 @@ internal static class STAThreadTests_STA_WithCompletedTask_ModuleInitializer_GUI #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskRun_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -741,12 +741,12 @@ internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::T yield break; } } -internal static class STAThreadTests_STA_WithTaskRun_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskRun_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskRun_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskRun_TestSource()); } } @@ -758,7 +758,7 @@ internal static class STAThreadTests_STA_WithTaskRun_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -825,12 +825,12 @@ internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : gl yield break; } } -internal static class STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithMultipleAwaits_TestSource()); } } @@ -842,7 +842,7 @@ internal static class STAThreadTests_STA_WithMultipleAwaits_ModuleInitializer_GU #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -909,12 +909,12 @@ internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : g yield break; } } -internal static class STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithAsyncEnumerable_TestSource()); } } @@ -926,7 +926,7 @@ internal static class STAThreadTests_STA_WithAsyncEnumerable_ModuleInitializer_G #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -993,12 +993,12 @@ internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : globa yield break; } } -internal static class STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithTaskWhenAll_TestSource()); } } @@ -1010,7 +1010,7 @@ internal static class STAThreadTests_STA_WithTaskWhenAll_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1077,12 +1077,12 @@ internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : yield break; } } -internal static class STAThreadTests_STA_WithExceptionHandling_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithExceptionHandling_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithExceptionHandling_TestSource()); } } @@ -1094,7 +1094,7 @@ internal static class STAThreadTests_STA_WithExceptionHandling_ModuleInitializer #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1161,12 +1161,12 @@ internal sealed class STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_G yield break; } } -internal static class STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithThrowsNothingAssertion_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithThrowsNothingAssertion_TestSource()); } } @@ -1178,7 +1178,7 @@ internal static class STAThreadTests_STA_WithThrowsNothingAssertion_ModuleInitia #nullable enable namespace TUnit.Generated; -internal sealed class STAThreadTests_STA_WithFuncAssertion_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -1245,11 +1245,11 @@ internal sealed class STAThreadTests_STA_WithFuncAssertion_TestSource_GUID : glo yield break; } } -internal static class STAThreadTests_STA_WithFuncAssertion_ModuleInitializer_GUID +internal static class TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new STAThreadTests_STA_WithFuncAssertion_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.STAThreadTests), new TUnit_TestProject_STAThreadTests_STA_WithFuncAssertion_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt index d2f0401e99..8cac05bc97 100644 --- a/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class StringArgumentTests_Normal_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_StringArgumentTests_Normal__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -97,12 +97,12 @@ internal sealed class StringArgumentTests_Normal_TestSource_GUID : global::TUnit yield break; } } -internal static class StringArgumentTests_Normal_ModuleInitializer_GUID +internal static class TUnit_TestProject_StringArgumentTests_Normal__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.StringArgumentTests), new StringArgumentTests_Normal_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.StringArgumentTests), new TUnit_TestProject_StringArgumentTests_Normal__string_TestSource()); } } @@ -114,7 +114,7 @@ internal static class StringArgumentTests_Normal_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class StringArgumentTests_Nullable_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_StringArgumentTests_Nullable__string__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -204,11 +204,11 @@ internal sealed class StringArgumentTests_Nullable_TestSource_GUID : global::TUn yield break; } } -internal static class StringArgumentTests_Nullable_ModuleInitializer_GUID +internal static class TUnit_TestProject_StringArgumentTests_Nullable__string__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.StringArgumentTests), new StringArgumentTests_Nullable_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.StringArgumentTests), new TUnit_TestProject_StringArgumentTests_Nullable__string__TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt index 8ce3ec135c..9dab7ad740 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_TryParse_InvalidString_ReturnsFailure_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1304_Tests_TryParse_InvalidString_ReturnsFailure__string__CancellationToken_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -97,12 +97,12 @@ internal sealed class Tests_TryParse_InvalidString_ReturnsFailure_TestSource_GUI yield break; } } -internal static class Tests_TryParse_InvalidString_ReturnsFailure_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1304_Tests_TryParse_InvalidString_ReturnsFailure__string__CancellationToken_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1304.Tests), new Tests_TryParse_InvalidString_ReturnsFailure_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1304.Tests), new TUnit_TestProject_Bugs__1304_Tests_TryParse_InvalidString_ReturnsFailure__string__CancellationToken_TestSource()); } } @@ -114,7 +114,7 @@ internal static class Tests_TryParse_InvalidString_ReturnsFailure_ModuleInitiali #nullable enable namespace TUnit.Generated; -internal sealed class Tests_Parse_InvalidString_ThrowsException_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1304_Tests_Parse_InvalidString_ThrowsException__string__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -200,12 +200,12 @@ internal sealed class Tests_Parse_InvalidString_ThrowsException_TestSource_GUID yield break; } } -internal static class Tests_Parse_InvalidString_ThrowsException_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1304_Tests_Parse_InvalidString_ThrowsException__string__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1304.Tests), new Tests_Parse_InvalidString_ThrowsException_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1304.Tests), new TUnit_TestProject_Bugs__1304_Tests_Parse_InvalidString_ThrowsException__string__TestSource()); } } @@ -217,7 +217,7 @@ internal static class Tests_Parse_InvalidString_ThrowsException_ModuleInitialize #nullable enable namespace TUnit.Generated; -internal sealed class Tests_TryParse_ValidString_ReturnsAccountId_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1304_Tests_TryParse_ValidString_ReturnsAccountId__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -300,11 +300,11 @@ internal sealed class Tests_TryParse_ValidString_ReturnsAccountId_TestSource_GUI yield break; } } -internal static class Tests_TryParse_ValidString_ReturnsAccountId_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1304_Tests_TryParse_ValidString_ReturnsAccountId__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1304.Tests), new Tests_TryParse_ValidString_ReturnsAccountId_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1304.Tests), new TUnit_TestProject_Bugs__1304_Tests_TryParse_ValidString_ReturnsAccountId__string_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt index b84d080fb4..f1db0eb3a4 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_Eight_Args_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1538_Tests_Eight_Args__bool_string__string__string__string__string__string__string__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -156,12 +156,12 @@ internal sealed class Tests_Eight_Args_TestSource_GUID : global::TUnit.Core.Inte yield break; } } -internal static class Tests_Eight_Args_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1538_Tests_Eight_Args__bool_string__string__string__string__string__string__string__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1538.Tests), new Tests_Eight_Args_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1538.Tests), new TUnit_TestProject_Bugs__1538_Tests_Eight_Args__bool_string__string__string__string__string__string__string__TestSource()); } } @@ -173,7 +173,7 @@ internal static class Tests_Eight_Args_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class Tests_SixteenArgs_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1538_Tests_SixteenArgs__bool_string__string__string__string__string__string__string__string__string__string__string__string__string__string__string__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -382,11 +382,11 @@ internal sealed class Tests_SixteenArgs_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class Tests_SixteenArgs_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1538_Tests_SixteenArgs__bool_string__string__string__string__string__string__string__string__string__string__string__string__string__string__string__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1538.Tests), new Tests_SixteenArgs_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1538.Tests), new TUnit_TestProject_Bugs__1538_Tests_SixteenArgs__bool_string__string__string__string__string__string__string__string__string__string__string__string__string__string__string__TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt index 3a739b709a..6215e8e5ca 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1539_Tests_Test_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -71,11 +71,11 @@ internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces yield break; } } -internal static class Tests_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1539_Tests_Test_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1539.Tests), new Tests_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1539.Tests), new TUnit_TestProject_Bugs__1539_Tests_Test_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt index b34b16e7dd..30f345f65e 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1589_MyTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -84,11 +84,11 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa yield break; } } -internal static class MyTests_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1589_MyTests_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1589.MyTests), new MyTests_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1589.MyTests), new TUnit_TestProject_Bugs__1589_MyTests_Test1_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt index b8277907aa..6b791bb019 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1594_MyTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -85,11 +85,11 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa yield break; } } -internal static class MyTests_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1594_MyTests_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1594.MyTests), new MyTests_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1594.MyTests), new TUnit_TestProject_Bugs__1594_MyTests_Test1_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt index b02a1020de..4d5c81e221 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_Casted_Integer_To_Short_Converts_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1603_Tests_Casted_Integer_To_Short_Converts__short_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -85,12 +85,12 @@ internal sealed class Tests_Casted_Integer_To_Short_Converts_TestSource_GUID : g yield break; } } -internal static class Tests_Casted_Integer_To_Short_Converts_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1603_Tests_Casted_Integer_To_Short_Converts__short_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1603.Tests), new Tests_Casted_Integer_To_Short_Converts_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1603.Tests), new TUnit_TestProject_Bugs__1603_Tests_Casted_Integer_To_Short_Converts__short_TestSource()); } } @@ -102,7 +102,7 @@ internal static class Tests_Casted_Integer_To_Short_Converts_ModuleInitializer_G #nullable enable namespace TUnit.Generated; -internal sealed class Tests_Integer_To_Short_Converts_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1603_Tests_Integer_To_Short_Converts__short_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -184,11 +184,11 @@ internal sealed class Tests_Integer_To_Short_Converts_TestSource_GUID : global:: yield break; } } -internal static class Tests_Integer_To_Short_Converts_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1603_Tests_Integer_To_Short_Converts__short_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1603.Tests), new Tests_Integer_To_Short_Converts_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1603.Tests), new TUnit_TestProject_Bugs__1603_Tests_Integer_To_Short_Converts__short_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt index 968a06b62a..1869a5dcd3 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_NullTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1692_Tests_NullTest__string__TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -86,11 +86,11 @@ internal sealed class Tests_NullTest_TestSource_GUID : global::TUnit.Core.Interf yield break; } } -internal static class Tests_NullTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1692_Tests_NullTest__string__ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1692.Tests), new Tests_NullTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1692.Tests), new TUnit_TestProject_Bugs__1692_Tests_NullTest__string__TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt index 01ed351326..de387cc342 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_MethodDataSource_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1821_Tests_MethodDataSource__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -101,12 +101,12 @@ internal sealed class Tests_MethodDataSource_TestSource_GUID : global::TUnit.Cor yield break; } } -internal static class Tests_MethodDataSource_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1821_Tests_MethodDataSource__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1821.Tests), new Tests_MethodDataSource_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1821.Tests), new TUnit_TestProject_Bugs__1821_Tests_MethodDataSource__string_TestSource()); } } @@ -118,7 +118,7 @@ internal static class Tests_MethodDataSource_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class Tests_MatrixDataSource_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1821_Tests_MatrixDataSource__string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -216,11 +216,11 @@ internal sealed class Tests_MatrixDataSource_TestSource_GUID : global::TUnit.Cor yield break; } } -internal static class Tests_MatrixDataSource_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1821_Tests_MatrixDataSource__string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1821.Tests), new Tests_MatrixDataSource_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1821.Tests), new TUnit_TestProject_Bugs__1821_Tests_MatrixDataSource__string_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet10_0.verified.txt index a9ed13dbdc..03e16a9367 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet10_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,12 +68,12 @@ internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource()); } } @@ -85,7 +85,7 @@ internal static class DerivedTest_Test1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -169,12 +169,12 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource()); } } @@ -186,7 +186,7 @@ internal static class DerivedTest_Test2_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -271,11 +271,11 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test3_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test3_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet8_0.verified.txt index a9ed13dbdc..03e16a9367 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet8_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,12 +68,12 @@ internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource()); } } @@ -85,7 +85,7 @@ internal static class DerivedTest_Test1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -169,12 +169,12 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource()); } } @@ -186,7 +186,7 @@ internal static class DerivedTest_Test2_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -271,11 +271,11 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test3_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test3_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet9_0.verified.txt index a9ed13dbdc..03e16a9367 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet9_0.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,12 +68,12 @@ internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource()); } } @@ -85,7 +85,7 @@ internal static class DerivedTest_Test1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -169,12 +169,12 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource()); } } @@ -186,7 +186,7 @@ internal static class DerivedTest_Test2_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -271,11 +271,11 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test3_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test3_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.Net4_7.verified.txt index 110be656ec..cdf2ab0fb0 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.Net4_7.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,12 +68,12 @@ internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource()); } } @@ -85,7 +85,7 @@ internal static class DerivedTest_Test1_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -169,12 +169,12 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource()); } } @@ -186,7 +186,7 @@ internal static class DerivedTest_Test2_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -271,11 +271,11 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test3_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new DerivedTest_Test3_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), new TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt index 3c85d2f51e..20ec87e37c 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__1899_DerivedTest_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,11 +68,11 @@ internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Int yield break; } } -internal static class DerivedTest_Test1_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__1899_DerivedTest_Test1_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1899.DerivedTest), new DerivedTest_Test1_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._1899.DerivedTest), new TUnit_TestProject_Bugs__1899_DerivedTest_Test1_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt index 135fcecda8..4171f69920 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_MyTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__2083_Tests_MyTest__long_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -91,11 +91,11 @@ internal sealed class Tests_MyTest_TestSource_GUID : global::TUnit.Core.Interfac yield break; } } -internal static class Tests_MyTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__2083_Tests_MyTest__long_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2083.Tests), new Tests_MyTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2083.Tests), new TUnit_TestProject_Bugs__2083_Tests_MyTest__long_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt index 30cd222477..498bc3908a 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_Double_SpecialConsts_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__2085_Tests_Double_SpecialConsts__double_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -85,12 +85,12 @@ internal sealed class Tests_Double_SpecialConsts_TestSource_GUID : global::TUnit yield break; } } -internal static class Tests_Double_SpecialConsts_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__2085_Tests_Double_SpecialConsts__double_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2085.Tests), new Tests_Double_SpecialConsts_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2085.Tests), new TUnit_TestProject_Bugs__2085_Tests_Double_SpecialConsts__double_TestSource()); } } @@ -102,7 +102,7 @@ internal static class Tests_Double_SpecialConsts_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class Tests_Float_SpecialConsts_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__2085_Tests_Float_SpecialConsts__float_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -184,11 +184,11 @@ internal sealed class Tests_Float_SpecialConsts_TestSource_GUID : global::TUnit. yield break; } } -internal static class Tests_Float_SpecialConsts_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__2085_Tests_Float_SpecialConsts__float_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2085.Tests), new Tests_Float_SpecialConsts_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2085.Tests), new TUnit_TestProject_Bugs__2085_Tests_Float_SpecialConsts__float_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt index c618ba7264..db77f85491 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__2112_Tests_Test__int_long___TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -112,12 +112,12 @@ internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces yield break; } } -internal static class Tests_Test_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__2112_Tests_Test__int_long___ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2112.Tests), new Tests_Test_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2112.Tests), new TUnit_TestProject_Bugs__2112_Tests_Test__int_long___TestSource()); } } @@ -129,7 +129,7 @@ internal static class Tests_Test_ModuleInitializer_GUID #nullable enable namespace TUnit.Generated; -internal sealed class Tests_Test2_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__2112_Tests_Test2__int_long___TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -238,11 +238,11 @@ internal sealed class Tests_Test2_TestSource_GUID : global::TUnit.Core.Interface yield break; } } -internal static class Tests_Test2_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__2112_Tests_Test2__int_long___ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2112.Tests), new Tests_Test2_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2112.Tests), new TUnit_TestProject_Bugs__2112_Tests_Test2__int_long___TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt index 0c05af0089..4669d3af79 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_Bugs__2136_Tests_GenericArgumentsTest__T_string_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -495,11 +495,11 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit yield break; } } -internal static class Tests_GenericArgumentsTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_Bugs__2136_Tests_GenericArgumentsTest__T_string_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2136.Tests), new Tests_GenericArgumentsTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.Bugs._2136.Tests), new TUnit_TestProject_Bugs__2136_Tests_GenericArgumentsTest__T_string_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt index 663b37a3b8..000f6132da 100644 --- a/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class TimeoutCancellationTokenTests_DefaultTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_TimeoutCancellationTokenTests_DefaultTest__CancellationToken_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -113,12 +113,12 @@ internal sealed class TimeoutCancellationTokenTests_DefaultTest_TestSource_GUID yield break; } } -internal static class TimeoutCancellationTokenTests_DefaultTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_TimeoutCancellationTokenTests_DefaultTest__CancellationToken_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TimeoutCancellationTokenTests_DefaultTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TUnit_TestProject_TimeoutCancellationTokenTests_DefaultTest__CancellationToken_TestSource()); } } @@ -130,7 +130,7 @@ internal static class TimeoutCancellationTokenTests_DefaultTest_ModuleInitialize #nullable enable namespace TUnit.Generated; -internal sealed class TimeoutCancellationTokenTests_BasicTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_TimeoutCancellationTokenTests_BasicTest__CancellationToken_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -242,12 +242,12 @@ internal sealed class TimeoutCancellationTokenTests_BasicTest_TestSource_GUID : yield break; } } -internal static class TimeoutCancellationTokenTests_BasicTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_TimeoutCancellationTokenTests_BasicTest__CancellationToken_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TimeoutCancellationTokenTests_BasicTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TUnit_TestProject_TimeoutCancellationTokenTests_BasicTest__CancellationToken_TestSource()); } } @@ -259,7 +259,7 @@ internal static class TimeoutCancellationTokenTests_BasicTest_ModuleInitializer_ #nullable enable namespace TUnit.Generated; -internal sealed class TimeoutCancellationTokenTests_InheritedTimeoutAttribute_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_TimeoutCancellationTokenTests_InheritedTimeoutAttribute__CancellationToken_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -370,12 +370,12 @@ internal sealed class TimeoutCancellationTokenTests_InheritedTimeoutAttribute_Te yield break; } } -internal static class TimeoutCancellationTokenTests_InheritedTimeoutAttribute_ModuleInitializer_GUID +internal static class TUnit_TestProject_TimeoutCancellationTokenTests_InheritedTimeoutAttribute__CancellationToken_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TimeoutCancellationTokenTests_InheritedTimeoutAttribute_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TUnit_TestProject_TimeoutCancellationTokenTests_InheritedTimeoutAttribute__CancellationToken_TestSource()); } } @@ -387,7 +387,7 @@ internal static class TimeoutCancellationTokenTests_InheritedTimeoutAttribute_Mo #nullable enable namespace TUnit.Generated; -internal sealed class TimeoutCancellationTokenTests_DataTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_TimeoutCancellationTokenTests_DataTest__int_CancellationToken_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -516,12 +516,12 @@ internal sealed class TimeoutCancellationTokenTests_DataTest_TestSource_GUID : g yield break; } } -internal static class TimeoutCancellationTokenTests_DataTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_TimeoutCancellationTokenTests_DataTest__int_CancellationToken_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TimeoutCancellationTokenTests_DataTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TUnit_TestProject_TimeoutCancellationTokenTests_DataTest__int_CancellationToken_TestSource()); } } @@ -533,7 +533,7 @@ internal static class TimeoutCancellationTokenTests_DataTest_ModuleInitializer_G #nullable enable namespace TUnit.Generated; -internal sealed class TimeoutCancellationTokenTests_DataSourceTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_TimeoutCancellationTokenTests_DataSourceTest__int_CancellationToken_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -683,12 +683,12 @@ internal sealed class TimeoutCancellationTokenTests_DataSourceTest_TestSource_GU yield break; } } -internal static class TimeoutCancellationTokenTests_DataSourceTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_TimeoutCancellationTokenTests_DataSourceTest__int_CancellationToken_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TimeoutCancellationTokenTests_DataSourceTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TUnit_TestProject_TimeoutCancellationTokenTests_DataSourceTest__int_CancellationToken_TestSource()); } } @@ -700,7 +700,7 @@ internal static class TimeoutCancellationTokenTests_DataSourceTest_ModuleInitial #nullable enable namespace TUnit.Generated; -internal sealed class TimeoutCancellationTokenTests_MatrixTest_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_TimeoutCancellationTokenTests_MatrixTest__int_CancellationToken_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -830,11 +830,11 @@ internal sealed class TimeoutCancellationTokenTests_MatrixTest_TestSource_GUID : yield break; } } -internal static class TimeoutCancellationTokenTests_MatrixTest_ModuleInitializer_GUID +internal static class TUnit_TestProject_TimeoutCancellationTokenTests_MatrixTest__int_CancellationToken_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TimeoutCancellationTokenTests_MatrixTest_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), new TUnit_TestProject_TimeoutCancellationTokenTests_MatrixTest__int_CancellationToken_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt index becb42f8cc..ae03807fe2 100644 --- a/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class TupleDataSourceDrivenTests_DataSource_TupleMethod_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_TupleDataSourceDrivenTests_DataSource_TupleMethod__int_string_bool_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -111,11 +111,11 @@ internal sealed class TupleDataSourceDrivenTests_DataSource_TupleMethod_TestSour yield break; } } -internal static class TupleDataSourceDrivenTests_DataSource_TupleMethod_ModuleInitializer_GUID +internal static class TUnit_TestProject_TupleDataSourceDrivenTests_DataSource_TupleMethod__int_string_bool_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TupleDataSourceDrivenTests), new TupleDataSourceDrivenTests_DataSource_TupleMethod_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TupleDataSourceDrivenTests), new TUnit_TestProject_TupleDataSourceDrivenTests_DataSource_TupleMethod__int_string_bool_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt index c886725446..d31973547c 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class AotDataSourceTest_TestWithDataSource_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_AotDataSourceTest_TestWithDataSource__int_int_int_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -100,11 +100,11 @@ internal sealed class AotDataSourceTest_TestWithDataSource_TestSource_GUID : glo yield break; } } -internal static class AotDataSourceTest_TestWithDataSource_ModuleInitializer_GUID +internal static class TUnit_TestProject_AotDataSourceTest_TestWithDataSource__int_int_int_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AotDataSourceTest), new AotDataSourceTest_TestWithDataSource_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AotDataSourceTest), new TUnit_TestProject_AotDataSourceTest_TestWithDataSource__int_int_int_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt index fbd1a8c41f..1b555edc1b 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ConfigurationTest_TestWithConfiguration_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ConfigurationTest_TestWithConfiguration_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,11 +66,11 @@ internal sealed class ConfigurationTest_TestWithConfiguration_TestSource_GUID : yield break; } } -internal static class ConfigurationTest_TestWithConfiguration_ModuleInitializer_GUID +internal static class TUnit_TestProject_ConfigurationTest_TestWithConfiguration_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConfigurationTest), new ConfigurationTest_TestWithConfiguration_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ConfigurationTest), new TUnit_TestProject_ConfigurationTest_TestWithConfiguration_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ModuleInitializer_Generation.verified.txt b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ModuleInitializer_Generation.verified.txt index 48d71739df..cada425949 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ModuleInitializer_Generation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ModuleInitializer_Generation.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class ModuleInitializerTest_TestWithModuleInit_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_ModuleInitializerTest_TestWithModuleInit_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,11 +66,11 @@ internal sealed class ModuleInitializerTest_TestWithModuleInit_TestSource_GUID : yield break; } } -internal static class ModuleInitializerTest_TestWithModuleInit_ModuleInitializer_GUID +internal static class TUnit_TestProject_ModuleInitializerTest_TestWithModuleInit_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ModuleInitializerTest), new ModuleInitializerTest_TestWithModuleInit_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ModuleInitializerTest), new TUnit_TestProject_ModuleInitializerTest_TestWithModuleInit_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_StronglyTypedDelegates_Generation.verified.txt b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_StronglyTypedDelegates_Generation.verified.txt index 46b9c93deb..14ad21f01b 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_StronglyTypedDelegates_Generation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_StronglyTypedDelegates_Generation.verified.txt @@ -3,7 +3,7 @@ #nullable enable namespace TUnit.Generated; -internal sealed class TypedDelegateTest_TestWithDelegate_TestSource_GUID : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource +internal sealed class TUnit_TestProject_TypedDelegateTest_TestWithDelegate_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource { public async global::System.Collections.Generic.IAsyncEnumerable GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { @@ -66,11 +66,11 @@ internal sealed class TypedDelegateTest_TestWithDelegate_TestSource_GUID : globa yield break; } } -internal static class TypedDelegateTest_TestWithDelegate_ModuleInitializer_GUID +internal static class TUnit_TestProject_TypedDelegateTest_TestWithDelegate_ModuleInitializer { [global::System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() { - global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TypedDelegateTest), new TypedDelegateTest_TestWithDelegate_TestSource_GUID()); + global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.TypedDelegateTest), new TUnit_TestProject_TypedDelegateTest_TestWithDelegate_TestSource()); } } diff --git a/TUnit.Core.SourceGenerator/CodeGenerationHelpers.cs b/TUnit.Core.SourceGenerator/CodeGenerationHelpers.cs index 5c0214dde2..48e70d9a27 100644 --- a/TUnit.Core.SourceGenerator/CodeGenerationHelpers.cs +++ b/TUnit.Core.SourceGenerator/CodeGenerationHelpers.cs @@ -540,7 +540,7 @@ private static string GenerateCustomDataProvider(AttributeData attr) /// - /// Generates all test-related attributes for the TestMetadata.Attributes field. + /// Generates all test-related attributes for the TestMetadata.AttributesByType field as a dictionary. /// public static string GenerateTestAttributes(IMethodSymbol methodSymbol) { @@ -552,24 +552,42 @@ public static string GenerateTestAttributes(IMethodSymbol methodSymbol) if (allAttributes.Count == 0) { - return "System.Array.Empty()"; + return "new System.Collections.Generic.Dictionary>().AsReadOnly()"; } - // Generate as a single line array to avoid CS8802 parser issues + // Group attributes by type + var attributesByType = allAttributes + .GroupBy(attr => attr.AttributeClass?.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat) ?? "System.Attribute") + .ToList(); + using var writer = new CodeWriter("", includeHeader: false); - // Generate inline array to avoid parser issues - using (writer.BeginArrayInitializer("new System.Attribute[]", terminator: "")) + // Generate dictionary initializer + writer.Append("new System.Collections.Generic.Dictionary>()"); + writer.AppendLine(); + writer.AppendLine("{"); + writer.Indent(); + + foreach (var group in attributesByType) { + var typeString = group.Key; + var attrs = group.ToList(); + + writer.Append($"[typeof({typeString})] = new System.Attribute[] {{ "); + var attributeStrings = new List(); - foreach (var attr in allAttributes) + foreach (var attr in attrs) { - // Use unified approach for all attributes attributeStrings.Add(GenerateAttributeInstantiation(attr)); } + writer.Append(string.Join(", ", attributeStrings)); + writer.AppendLine(" },"); } + writer.Unindent(); + writer.Append("}.AsReadOnly()"); + return writer.ToString().Trim(); } diff --git a/TUnit.Core.SourceGenerator/Generators/HookMetadataGenerator.cs b/TUnit.Core.SourceGenerator/Generators/HookMetadataGenerator.cs index c49e6dd639..8be857e086 100644 --- a/TUnit.Core.SourceGenerator/Generators/HookMetadataGenerator.cs +++ b/TUnit.Core.SourceGenerator/Generators/HookMetadataGenerator.cs @@ -4,6 +4,7 @@ using TUnit.Core.SourceGenerator.CodeGenerators.Helpers; using TUnit.Core.SourceGenerator.CodeGenerators.Writers; using TUnit.Core.SourceGenerator.Extensions; +using TUnit.Core.SourceGenerator.Helpers; namespace TUnit.Core.SourceGenerator.Generators; @@ -132,38 +133,14 @@ private static void GenerateIndividualHookFile(SourceProductionContext context, private static string GetSafeFileName(HookMethodMetadata hook) { - var typeName = hook.TypeSymbol.Name; - var methodName = hook.MethodSymbol.Name; - - // Remove generic type parameters from type name for file safety - if (hook.TypeSymbol.IsGenericType) - { - var genericIndex = typeName.IndexOf('`'); - if (genericIndex > 0) - { - typeName = typeName.Substring(0, genericIndex); - } - } - - var safeTypeName = typeName - .Replace(".", "_") - .Replace("<", "_") - .Replace(">", "_") - .Replace(",", "_") - .Replace(" ", "") - .Replace("`", "_") - .Replace("+", "_"); + // Use FileNameHelper for deterministic naming (fixes GUID issue that breaks incremental compilation) + var baseFileName = FileNameHelper.GetDeterministicFileNameForMethod(hook.TypeSymbol, hook.MethodSymbol); - var safeMethodName = methodName - .Replace(".", "_") - .Replace("<", "_") - .Replace(">", "_") - .Replace(",", "_") - .Replace(" ", ""); + // Remove the .g.cs extension since it's used as an identifier, not just a filename + var fileNameWithoutExtension = baseFileName.Substring(0, baseFileName.Length - ".g.cs".Length); - var guid = System.Guid.NewGuid().ToString("N"); - - return $"{safeTypeName}_{safeMethodName}_{hook.HookKind}_{hook.HookType}_{guid}"; + // Add hook-specific information to make it unique (WITHOUT .g.cs - that's added when registering the source file) + return $"{fileNameWithoutExtension}_{hook.HookKind}_{hook.HookType}"; } private static void GenerateHookRegistration(CodeWriter writer, HookMethodMetadata hook) diff --git a/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs b/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs index 1a71704c50..35ffe284ac 100644 --- a/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs +++ b/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs @@ -123,7 +123,16 @@ private static void GenerateInheritedTestSources(SourceProductionContext context var concreteMethod = FindConcreteMethodImplementation(classInfo.TypeSymbol, method); - var inheritanceDepth = CalculateInheritanceDepth(classInfo.TypeSymbol, method); + // Calculate inheritance depth using concrete method if available + var methodToCheck = concreteMethod ?? method; + var inheritanceDepth = CalculateInheritanceDepth(classInfo.TypeSymbol, methodToCheck); + + // Skip methods declared directly on this class (inheritance depth = 0) + // Those are already handled by the regular test method registration + if (inheritanceDepth == 0) + { + continue; + } var (filePath, lineNumber) = GetTestMethodSourceLocation(method, testAttribute, classInfo); // If the method is from a generic base class, use the constructed version from the inheritance hierarchy @@ -165,7 +174,10 @@ private static void GenerateInheritedTestSources(SourceProductionContext context private static int CalculateInheritanceDepth(INamedTypeSymbol testClass, IMethodSymbol testMethod) { - if (testMethod.ContainingType.Equals(testClass, SymbolEqualityComparer.Default)) + var methodContainingType = testMethod.ContainingType.OriginalDefinition; + var testClassOriginal = testClass.OriginalDefinition; + + if (SymbolEqualityComparer.Default.Equals(methodContainingType, testClassOriginal)) { return 0; } @@ -176,7 +188,8 @@ private static int CalculateInheritanceDepth(INamedTypeSymbol testClass, IMethod while (currentType != null) { depth++; - if (testMethod.ContainingType.Equals(currentType, SymbolEqualityComparer.Default)) + var currentTypeOriginal = currentType.OriginalDefinition; + if (SymbolEqualityComparer.Default.Equals(methodContainingType, currentTypeOriginal)) { return depth; } @@ -202,7 +215,7 @@ private static void GenerateTestMethodSource(SourceProductionContext context, Te GenerateFileHeader(writer); GenerateTestMetadata(writer, testMethod); - var fileName = $"{testMethod.TypeSymbol.Name}_{testMethod.MethodSymbol.Name}_{Guid.NewGuid():N}.g.cs"; + var fileName = FileNameHelper.GetDeterministicFileNameForMethod(testMethod.TypeSymbol, testMethod.MethodSymbol); context.AddSource(fileName, SourceText.From(writer.ToString(), Encoding.UTF8)); } catch (Exception ex) @@ -240,10 +253,12 @@ private static void GenerateTestMetadata(CodeWriter writer, TestMethodMetadata t var className = testMethod.TypeSymbol.GloballyQualified(); var methodName = testMethod.MethodSymbol.Name; - var guid = Guid.NewGuid().ToString("N"); - var combinationGuid = Guid.NewGuid().ToString("N").Substring(0, 8); - writer.AppendLine($"internal sealed class {testMethod.TypeSymbol.Name}_{methodName}_TestSource_{guid} : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource"); + // Generate unique class name using same pattern as filename (without .g.cs extension) + var uniqueClassName = FileNameHelper.GetDeterministicFileNameForMethod(testMethod.TypeSymbol, testMethod.MethodSymbol) + .Replace(".g.cs", "_TestSource"); + + writer.AppendLine($"internal sealed class {uniqueClassName} : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource"); writer.AppendLine("{"); writer.Indent(); @@ -283,16 +298,16 @@ private static void GenerateTestMetadata(CodeWriter writer, TestMethodMetadata t if (hasTypedDataSource || hasGenerateGenericTest || testMethod.IsGenericMethod || hasClassArguments || hasTypedDataSourceForGenericType || hasMethodArgumentsForGenericType || hasMethodDataSourceForGenericType) { - GenerateGenericTestWithConcreteTypes(writer, testMethod, className, combinationGuid); + GenerateGenericTestWithConcreteTypes(writer, testMethod, className, uniqueClassName); } else { - GenerateTestMetadataInstance(writer, testMethod, className, combinationGuid); + GenerateTestMetadataInstance(writer, testMethod, className, uniqueClassName); } } else { - GenerateTestMetadataInstance(writer, testMethod, className, combinationGuid); + GenerateTestMetadataInstance(writer, testMethod, className, uniqueClassName); } writer.AppendLine("yield break;"); @@ -302,7 +317,7 @@ private static void GenerateTestMetadata(CodeWriter writer, TestMethodMetadata t writer.Unindent(); writer.AppendLine("}"); - GenerateModuleInitializer(writer, testMethod, guid); + GenerateModuleInitializer(writer, testMethod, uniqueClassName); } private static void GenerateSpecificGenericInstantiation( @@ -1973,17 +1988,17 @@ private static void GenerateConcreteTestInvoker(CodeWriter writer, TestMethodMet } - private static void GenerateModuleInitializer(CodeWriter writer, TestMethodMetadata testMethod, string guid) + private static void GenerateModuleInitializer(CodeWriter writer, TestMethodMetadata testMethod, string uniqueClassName) { writer.AppendLine(); - writer.AppendLine($"internal static class {testMethod.TypeSymbol.Name}_{testMethod.MethodSymbol.Name}_ModuleInitializer_{guid}"); + writer.AppendLine($"internal static class {uniqueClassName.Replace("_TestSource", "_ModuleInitializer")}"); writer.AppendLine("{"); writer.Indent(); writer.AppendLine("[global::System.Runtime.CompilerServices.ModuleInitializer]"); writer.AppendLine("public static void Initialize()"); writer.AppendLine("{"); writer.Indent(); - writer.AppendLine($"global::TUnit.Core.SourceRegistrar.Register({GenerateTypeReference(testMethod.TypeSymbol, testMethod.IsGenericType)}, new {testMethod.TypeSymbol.Name}_{testMethod.MethodSymbol.Name}_TestSource_{guid}());"); + writer.AppendLine($"global::TUnit.Core.SourceRegistrar.Register({GenerateTypeReference(testMethod.TypeSymbol, testMethod.IsGenericType)}, new {uniqueClassName}());"); writer.Unindent(); writer.AppendLine("}"); writer.Unindent(); diff --git a/TUnit.Core.SourceGenerator/Helpers/FileNameHelper.cs b/TUnit.Core.SourceGenerator/Helpers/FileNameHelper.cs new file mode 100644 index 0000000000..7cbb86884e --- /dev/null +++ b/TUnit.Core.SourceGenerator/Helpers/FileNameHelper.cs @@ -0,0 +1,121 @@ +using System.Text; +using Microsoft.CodeAnalysis; + +namespace TUnit.Core.SourceGenerator.Helpers; + +/// +/// Helper for generating deterministic, sanitized filenames for generated source files. +/// +internal static class FileNameHelper +{ + /// + /// Generates a deterministic filename for a test class. + /// Format: {Namespace}_{ClassName}_{GenericArgs}.g.cs + /// + /// The type symbol for the test class + /// A deterministic filename like "MyNamespace_MyClass_T.g.cs" + public static string GetDeterministicFileName(INamedTypeSymbol typeSymbol) + { + var sb = new StringBuilder(); + + // Add namespace + if (!typeSymbol.ContainingNamespace.IsGlobalNamespace) + { + sb.Append(SanitizeForFileName(typeSymbol.ContainingNamespace.ToDisplayString())); + sb.Append('_'); + } + + // Add class name + sb.Append(SanitizeForFileName(typeSymbol.Name)); + + // Add generic type arguments if any + if (typeSymbol.TypeArguments.Length > 0) + { + sb.Append('_'); + for (int i = 0; i < typeSymbol.TypeArguments.Length; i++) + { + if (i > 0) sb.Append('_'); + sb.Append(SanitizeForFileName(typeSymbol.TypeArguments[i].Name)); + } + } + + sb.Append(".g.cs"); + return sb.ToString(); + } + + /// + /// Generates a deterministic filename for a test method. + /// Format: {Namespace}_{ClassName}_{MethodName}__{ParameterTypes}.g.cs + /// + /// The type symbol for the test class + /// The method symbol for the test method + /// A deterministic filename like "MyNamespace_MyClass_MyMethod__Int32_String.g.cs" + public static string GetDeterministicFileNameForMethod(INamedTypeSymbol typeSymbol, IMethodSymbol methodSymbol) + { + var sb = new StringBuilder(); + + // Add namespace + if (!typeSymbol.ContainingNamespace.IsGlobalNamespace) + { + sb.Append(SanitizeForFileName(typeSymbol.ContainingNamespace.ToDisplayString())); + sb.Append('_'); + } + + // Add class name (with generic parameters if any) + sb.Append(SanitizeForFileName(typeSymbol.Name)); + if (typeSymbol.TypeArguments.Length > 0) + { + sb.Append('_'); + for (int i = 0; i < typeSymbol.TypeArguments.Length; i++) + { + if (i > 0) sb.Append('_'); + sb.Append(SanitizeForFileName(typeSymbol.TypeArguments[i].Name)); + } + } + sb.Append('_'); + + // Add method name + sb.Append(SanitizeForFileName(methodSymbol.Name)); + + // Add parameters with double underscore separator + if (methodSymbol.Parameters.Length > 0) + { + sb.Append("__"); + for (int i = 0; i < methodSymbol.Parameters.Length; i++) + { + if (i > 0) sb.Append('_'); + sb.Append(SanitizeForFileName(methodSymbol.Parameters[i].Type.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat))); + } + } + + sb.Append(".g.cs"); + return sb.ToString(); + } + + /// + /// Sanitizes a string to be safe for use in a filename. + /// Replaces invalid characters with underscores. + /// + private static string SanitizeForFileName(string input) + { + var sb = new StringBuilder(input.Length); + + foreach (var c in input) + { + // Replace invalid filename characters and special type characters with underscore + if (c == '<' || c == '>' || c == ':' || c == '"' || c == '/' || c == '\\' || + c == '|' || c == '?' || c == '*' || c == '.' || c == ',' || c == ' ' || + c == '(' || c == ')' || c == '[' || c == ']' || c == '{' || c == '}') + { + sb.Append('_'); + } + else + { + sb.Append(c); + } + } + + return sb.ToString(); + } + +} diff --git a/TUnit.Core.SourceGenerator/Models/TestClassMetadata.cs b/TUnit.Core.SourceGenerator/Models/TestClassMetadata.cs new file mode 100644 index 0000000000..cff6f1f3ec --- /dev/null +++ b/TUnit.Core.SourceGenerator/Models/TestClassMetadata.cs @@ -0,0 +1,60 @@ +using System.Collections.Immutable; +using Microsoft.CodeAnalysis; + +namespace TUnit.Core.SourceGenerator.Models; + +/// +/// Contains metadata about a test class and all its test methods. +/// This is used to group tests by class for more efficient file generation. +/// +public class TestClassMetadata : IEquatable +{ + public required INamedTypeSymbol TypeSymbol { get; init; } + public required ImmutableArray TestMethods { get; init; } + + public bool Equals(TestClassMetadata? other) + { + if (ReferenceEquals(null, other)) + return false; + if (ReferenceEquals(this, other)) + return true; + + // Check if the type symbol is the same + if (!SymbolEqualityComparer.Default.Equals(TypeSymbol, other.TypeSymbol)) + return false; + + // Check if test methods array length is the same + if (TestMethods.Length != other.TestMethods.Length) + return false; + + // Check each test method + for (int i = 0; i < TestMethods.Length; i++) + { + if (!TestMethods[i].Equals(other.TestMethods[i])) + return false; + } + + return true; + } + + public override bool Equals(object? obj) + { + return Equals(obj as TestClassMetadata); + } + + public override int GetHashCode() + { + unchecked + { + var hashCode = SymbolEqualityComparer.Default.GetHashCode(TypeSymbol); + + // Include test methods in hash + foreach (var testMethod in TestMethods) + { + hashCode = (hashCode * 397) ^ testMethod.GetHashCode(); + } + + return hashCode; + } + } +} diff --git a/TUnit.Core/Helpers/ArgumentFormatter.cs b/TUnit.Core/Helpers/ArgumentFormatter.cs index bcf81189d8..a3629757ad 100644 --- a/TUnit.Core/Helpers/ArgumentFormatter.cs +++ b/TUnit.Core/Helpers/ArgumentFormatter.cs @@ -56,7 +56,16 @@ private static string FormatDefault(object? o) return FormatEnumerable(enumerable); } - var toString = o.ToString()!; + string toString; + try + { + toString = o.ToString()!; + } + catch + { + // If ToString() throws, fall back to type name + return type.Name; + } if (o is Enum) { @@ -100,15 +109,23 @@ private static string FormatEnumerable(IEnumerable enumerable) var elements = new List(maxElements + 1); var count = 0; - foreach (var element in enumerable) + try { - if (count >= maxElements) + foreach (var element in enumerable) { - elements.Add("..."); - break; + if (count >= maxElements) + { + elements.Add("..."); + break; + } + elements.Add(FormatDefault(element)); + count++; } - elements.Add(FormatDefault(element)); - count++; + } + catch + { + // If GetEnumerator() or MoveNext() throws, fall back to type name + return enumerable.GetType().Name; } return string.Join(", ", elements); diff --git a/TUnit.Core/Helpers/AttributeDictionaryHelper.cs b/TUnit.Core/Helpers/AttributeDictionaryHelper.cs new file mode 100644 index 0000000000..c0824199f9 --- /dev/null +++ b/TUnit.Core/Helpers/AttributeDictionaryHelper.cs @@ -0,0 +1,46 @@ +using System.Collections.ObjectModel; + +namespace TUnit.Core.Helpers; + +/// +/// Helper methods for working with attribute dictionaries. +/// +public static class AttributeDictionaryHelper +{ + private static readonly IReadOnlyDictionary> EmptyDictionary = + new ReadOnlyDictionary>(new Dictionary>()); + + /// + /// Converts an array of attributes to a read-only dictionary grouped by type. + /// + public static IReadOnlyDictionary> ToAttributeDictionary(this Attribute[] attributes) + { + if (attributes.Length == 0) + { + return EmptyDictionary; + } + + var result = new Dictionary>(); + + foreach (var attr in attributes) + { + var type = attr.GetType(); + if (!result.TryGetValue(type, out var list)) + { + var newList = new List { attr }; + result[type] = newList; + } + else + { + ((List)list).Add(attr); + } + } + + return new ReadOnlyDictionary>(result); + } + + /// + /// Gets an empty read-only attribute dictionary. + /// + public static IReadOnlyDictionary> Empty => EmptyDictionary; +} diff --git a/TUnit.Core/TestDetails.cs b/TUnit.Core/TestDetails.cs index 801ba823ef..e39b16704e 100644 --- a/TUnit.Core/TestDetails.cs +++ b/TUnit.Core/TestDetails.cs @@ -29,15 +29,56 @@ public class TestDetails public Dictionary> CustomProperties { get; } = new(); public Type[]? TestClassParameterTypes { get; set; } - public required IReadOnlyList Attributes { get; init; } + public required IReadOnlyDictionary> AttributesByType { get; init; } + + private readonly Lazy> _cachedAllAttributes; + + public TestDetails() + { + _cachedAllAttributes = new Lazy>(() => + { + var allAttrs = new List(); + foreach (var attrList in AttributesByType?.Values ?? []) + { + allAttrs.AddRange(attrList); + } + return allAttrs; + }); + } + + /// + /// Checks if the test has an attribute of the specified type. + /// + /// The attribute type to check for. + /// True if the test has at least one attribute of the specified type; otherwise, false. + public bool HasAttribute() where T : Attribute + => AttributesByType.ContainsKey(typeof(T)); + + /// + /// Gets all attributes of the specified type. + /// + /// The attribute type to retrieve. + /// An enumerable of attributes of the specified type. + public IEnumerable GetAttributes() where T : Attribute + => AttributesByType.TryGetValue(typeof(T), out var attrs) + ? attrs.OfType() + : Enumerable.Empty(); + + /// + /// Gets all attributes as a flattened collection. + /// Cached after first access for performance. + /// + /// All attributes associated with this test. + public IReadOnlyList GetAllAttributes() => _cachedAllAttributes.Value; + public object?[] ClassMetadataArguments => TestClassArguments; - + /// /// Resolved generic type arguments for the test method. /// Will be Type.EmptyTypes if the method is not generic. /// public Type[] MethodGenericArguments { get; set; } = Type.EmptyTypes; - + /// /// Resolved generic type arguments for the test class. /// Will be Type.EmptyTypes if the class is not generic. diff --git a/TUnit.Engine/Building/TestBuilder.cs b/TUnit.Engine/Building/TestBuilder.cs index 78fa82ca94..fa69e3c536 100644 --- a/TUnit.Engine/Building/TestBuilder.cs +++ b/TUnit.Engine/Building/TestBuilder.cs @@ -876,7 +876,7 @@ private async ValueTask CreateTestContextAsync(string testId, TestM TestLineNumber = metadata.LineNumber, ReturnType = metadata.MethodMetadata.ReturnType ?? typeof(void), MethodMetadata = metadata.MethodMetadata, - Attributes = attributes, + AttributesByType = attributes.ToAttributeDictionary(), MethodGenericArguments = testData.ResolvedMethodGenericArguments, ClassGenericArguments = testData.ResolvedClassGenericArguments, Timeout = TimeSpan.FromMinutes(30) // Default 30-minute timeout (can be overridden by TimeoutAttribute) @@ -973,7 +973,7 @@ private async Task CreateFailedTestDetails(TestMetadata metadata, s TestLineNumber = metadata.LineNumber, ReturnType = typeof(Task), MethodMetadata = metadata.MethodMetadata, - Attributes = await InitializeAttributesAsync(metadata.AttributeFactory.Invoke()), + AttributesByType = (await InitializeAttributesAsync(metadata.AttributeFactory.Invoke())).ToAttributeDictionary(), Timeout = TimeSpan.FromMinutes(30) // Default 30-minute timeout (can be overridden by TimeoutAttribute) }; } diff --git a/TUnit.Engine/Building/TestBuilderPipeline.cs b/TUnit.Engine/Building/TestBuilderPipeline.cs index ddeb311691..35bc732c91 100644 --- a/TUnit.Engine/Building/TestBuilderPipeline.cs +++ b/TUnit.Engine/Building/TestBuilderPipeline.cs @@ -1,6 +1,7 @@ using System.Diagnostics.CodeAnalysis; using EnumerableAsyncProcessor.Extensions; using TUnit.Core; +using TUnit.Core.Helpers; using TUnit.Core.Interfaces; using TUnit.Core.Services; using TUnit.Engine.Building.Interfaces; @@ -173,7 +174,7 @@ private async Task GenerateDynamicTests(TestMetadata m TestLineNumber = metadata.LineNumber, ReturnType = typeof(Task), MethodMetadata = metadata.MethodMetadata, - Attributes = attributes, + AttributesByType = attributes.ToAttributeDictionary(), Timeout = TimeSpan.FromMinutes(30) // Default 30-minute timeout (can be overridden by TimeoutAttribute) // Don't set RetryLimit here - let discovery event receivers set it }; @@ -293,7 +294,7 @@ private async IAsyncEnumerable BuildTestsFromSingleMetad TestLineNumber = resolvedMetadata.LineNumber, ReturnType = typeof(Task), MethodMetadata = resolvedMetadata.MethodMetadata, - Attributes = attributes, + AttributesByType = attributes.ToAttributeDictionary(), Timeout = TimeSpan.FromMinutes(30) // Default 30-minute timeout (can be overridden by TimeoutAttribute) // Don't set Timeout and RetryLimit here - let discovery event receivers set them }; @@ -367,7 +368,7 @@ private AbstractExecutableTest CreateFailedTestForDataGenerationError(TestMetada TestLineNumber = metadata.LineNumber, ReturnType = typeof(Task), MethodMetadata = metadata.MethodMetadata, - Attributes = [], + AttributesByType = AttributeDictionaryHelper.Empty, Timeout = TimeSpan.FromMinutes(30) // Default 30-minute timeout }; @@ -419,7 +420,7 @@ private AbstractExecutableTest CreateFailedTestForGenericResolutionError(TestMet TestLineNumber = metadata.LineNumber, ReturnType = typeof(Task), MethodMetadata = metadata.MethodMetadata, - Attributes = [], + AttributesByType = AttributeDictionaryHelper.Empty, Timeout = TimeSpan.FromMinutes(30) // Default 30-minute timeout }; diff --git a/TUnit.Engine/Discovery/ReflectionTestMetadata.cs b/TUnit.Engine/Discovery/ReflectionTestMetadata.cs index 9354c9525f..4866d23e2e 100644 --- a/TUnit.Engine/Discovery/ReflectionTestMetadata.cs +++ b/TUnit.Engine/Discovery/ReflectionTestMetadata.cs @@ -52,7 +52,7 @@ async Task CreateInstance(TestContext testContext) // Otherwise fall back to creating instance normally // Try to create instance with ClassConstructor attribute - var attributes = testContext.TestDetails.Attributes; + var attributes = testContext.TestDetails.GetAllAttributes(); var classConstructorInstance = await ClassConstructorHelper.TryCreateInstanceWithClassConstructor( attributes, TestClassType, diff --git a/TUnit.Engine/Extensions/TestContextExtensions.cs b/TUnit.Engine/Extensions/TestContextExtensions.cs index aa9b10edc8..2f5812b8b3 100644 --- a/TUnit.Engine/Extensions/TestContextExtensions.cs +++ b/TUnit.Engine/Extensions/TestContextExtensions.cs @@ -10,7 +10,7 @@ internal static class TestContextExtensions testContext.Events, ..testContext.TestDetails.TestClassArguments, testContext.TestDetails.ClassInstance, - ..testContext.TestDetails.Attributes, + ..testContext.TestDetails.GetAllAttributes(), ..testContext.TestDetails.TestMethodArguments, ..testContext.TestDetails.TestClassInjectedPropertyArguments.Select(x => x.Value), ]; diff --git a/TUnit.Engine/Services/TestFilterService.cs b/TUnit.Engine/Services/TestFilterService.cs index aa9b8f5b63..d73cb5c86e 100644 --- a/TUnit.Engine/Services/TestFilterService.cs +++ b/TUnit.Engine/Services/TestFilterService.cs @@ -183,7 +183,7 @@ private PropertyBag BuildPropertyBag(AbstractExecutableTest test) private bool IsExplicitTest(AbstractExecutableTest test) { - if (test.Context.TestDetails.Attributes.OfType().Any()) + if (test.Context.TestDetails.HasAttribute()) { return true; } diff --git a/TUnit.Engine/Services/TestRegistry.cs b/TUnit.Engine/Services/TestRegistry.cs index 79352774b3..98cfa207af 100644 --- a/TUnit.Engine/Services/TestRegistry.cs +++ b/TUnit.Engine/Services/TestRegistry.cs @@ -202,7 +202,7 @@ public async Task CreateTestVariant( } var lambda = Expression.Lambda>(body, parameter); - var attributes = new List(currentContext.TestDetails.Attributes); + var attributes = new List(currentContext.TestDetails.GetAllAttributes()); var discoveryResult = new DynamicDiscoveryResult { diff --git a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet10_0.verified.txt b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet10_0.verified.txt index 5cf43438fa..3232960360 100644 --- a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet10_0.verified.txt +++ b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet10_0.verified.txt @@ -1374,7 +1374,7 @@ namespace public class TestDetails { public TestDetails() { } - public required .<> Attributes { get; init; } + public required .<, .<>> AttributesByType { get; init; } public . Categories { get; } public [] ClassGenericArguments { get; set; } public required object ClassInstance { get; set; } @@ -1396,6 +1396,11 @@ namespace public required object?[] TestMethodArguments { get; set; } public required string TestName { get; init; } public ? Timeout { get; set; } + public .<> GetAllAttributes() { } + public . GetAttributes() + where T : { } + public bool HasAttribute() + where T : { } } public class TestDetails : .TestDetails where T : class @@ -1907,6 +1912,11 @@ namespace .Helpers public static string FormatArguments(. arguments) { } public static string GetConstantValue(.TestContext testContext, object? o) { } } + public static class AttributeDictionaryHelper + { + public static .<, .<>> Empty { get; } + public static .<, .<>> ToAttributeDictionary(this [] attributes) { } + } public static class CastHelper { [.("AOT", "IL3050:Calling members annotated with \'RequiresDynamicCodeAttribute\' may break fu" + diff --git a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet8_0.verified.txt b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet8_0.verified.txt index 1f014f8981..422794f37e 100644 --- a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet8_0.verified.txt +++ b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet8_0.verified.txt @@ -1374,7 +1374,7 @@ namespace public class TestDetails { public TestDetails() { } - public required .<> Attributes { get; init; } + public required .<, .<>> AttributesByType { get; init; } public . Categories { get; } public [] ClassGenericArguments { get; set; } public required object ClassInstance { get; set; } @@ -1396,6 +1396,11 @@ namespace public required object?[] TestMethodArguments { get; set; } public required string TestName { get; init; } public ? Timeout { get; set; } + public .<> GetAllAttributes() { } + public . GetAttributes() + where T : { } + public bool HasAttribute() + where T : { } } public class TestDetails : .TestDetails where T : class @@ -1907,6 +1912,11 @@ namespace .Helpers public static string FormatArguments(. arguments) { } public static string GetConstantValue(.TestContext testContext, object? o) { } } + public static class AttributeDictionaryHelper + { + public static .<, .<>> Empty { get; } + public static .<, .<>> ToAttributeDictionary(this [] attributes) { } + } public static class CastHelper { [.("AOT", "IL3050:Calling members annotated with \'RequiresDynamicCodeAttribute\' may break fu" + diff --git a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet9_0.verified.txt b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet9_0.verified.txt index 7ac29524d6..e0010fbf29 100644 --- a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet9_0.verified.txt +++ b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet9_0.verified.txt @@ -1374,7 +1374,7 @@ namespace public class TestDetails { public TestDetails() { } - public required .<> Attributes { get; init; } + public required .<, .<>> AttributesByType { get; init; } public . Categories { get; } public [] ClassGenericArguments { get; set; } public required object ClassInstance { get; set; } @@ -1396,6 +1396,11 @@ namespace public required object?[] TestMethodArguments { get; set; } public required string TestName { get; init; } public ? Timeout { get; set; } + public .<> GetAllAttributes() { } + public . GetAttributes() + where T : { } + public bool HasAttribute() + where T : { } } public class TestDetails : .TestDetails where T : class @@ -1907,6 +1912,11 @@ namespace .Helpers public static string FormatArguments(. arguments) { } public static string GetConstantValue(.TestContext testContext, object? o) { } } + public static class AttributeDictionaryHelper + { + public static .<, .<>> Empty { get; } + public static .<, .<>> ToAttributeDictionary(this [] attributes) { } + } public static class CastHelper { [.("AOT", "IL3050:Calling members annotated with \'RequiresDynamicCodeAttribute\' may break fu" + diff --git a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.Net4_7.verified.txt b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.Net4_7.verified.txt index d96a686458..a58f4b47ae 100644 --- a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.Net4_7.verified.txt +++ b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.Net4_7.verified.txt @@ -1329,7 +1329,7 @@ namespace public class TestDetails { public TestDetails() { } - public required .<> Attributes { get; init; } + public required .<, .<>> AttributesByType { get; init; } public . Categories { get; } public [] ClassGenericArguments { get; set; } public required object ClassInstance { get; set; } @@ -1350,6 +1350,11 @@ namespace public required object?[] TestMethodArguments { get; set; } public required string TestName { get; init; } public ? Timeout { get; set; } + public .<> GetAllAttributes() { } + public . GetAttributes() + where T : { } + public bool HasAttribute() + where T : { } } public class TestDetails : .TestDetails where T : class @@ -1857,6 +1862,11 @@ namespace .Helpers public static string FormatArguments(. arguments) { } public static string GetConstantValue(.TestContext testContext, object? o) { } } + public static class AttributeDictionaryHelper + { + public static .<, .<>> Empty { get; } + public static .<, .<>> ToAttributeDictionary(this [] attributes) { } + } public static class CastHelper { public static object? Cast( type, object? value) { } diff --git a/TUnit.Templates/content/TUnit.AspNet.FSharp/TestProject/TestProject.fsproj b/TUnit.Templates/content/TUnit.AspNet.FSharp/TestProject/TestProject.fsproj index fde1468878..11470092b7 100644 --- a/TUnit.Templates/content/TUnit.AspNet.FSharp/TestProject/TestProject.fsproj +++ b/TUnit.Templates/content/TUnit.AspNet.FSharp/TestProject/TestProject.fsproj @@ -10,8 +10,8 @@ - - + + diff --git a/TUnit.Templates/content/TUnit.AspNet/TestProject/TestProject.csproj b/TUnit.Templates/content/TUnit.AspNet/TestProject/TestProject.csproj index 4559917c1e..df8607e357 100644 --- a/TUnit.Templates/content/TUnit.AspNet/TestProject/TestProject.csproj +++ b/TUnit.Templates/content/TUnit.AspNet/TestProject/TestProject.csproj @@ -9,7 +9,7 @@ - + diff --git a/TUnit.Templates/content/TUnit.Aspire.Starter/ExampleNamespace.TestProject/ExampleNamespace.TestProject.csproj b/TUnit.Templates/content/TUnit.Aspire.Starter/ExampleNamespace.TestProject/ExampleNamespace.TestProject.csproj index f805d84519..4edc91b281 100644 --- a/TUnit.Templates/content/TUnit.Aspire.Starter/ExampleNamespace.TestProject/ExampleNamespace.TestProject.csproj +++ b/TUnit.Templates/content/TUnit.Aspire.Starter/ExampleNamespace.TestProject/ExampleNamespace.TestProject.csproj @@ -11,7 +11,7 @@ - + diff --git a/TUnit.Templates/content/TUnit.Aspire.Test/ExampleNamespace.csproj b/TUnit.Templates/content/TUnit.Aspire.Test/ExampleNamespace.csproj index d591cef40f..02fa9e6e4c 100644 --- a/TUnit.Templates/content/TUnit.Aspire.Test/ExampleNamespace.csproj +++ b/TUnit.Templates/content/TUnit.Aspire.Test/ExampleNamespace.csproj @@ -10,7 +10,7 @@ - + diff --git a/TUnit.Templates/content/TUnit.FSharp/TestProject.fsproj b/TUnit.Templates/content/TUnit.FSharp/TestProject.fsproj index 0b5a70177f..ee617a08d6 100644 --- a/TUnit.Templates/content/TUnit.FSharp/TestProject.fsproj +++ b/TUnit.Templates/content/TUnit.FSharp/TestProject.fsproj @@ -10,8 +10,8 @@ - - + + diff --git a/TUnit.Templates/content/TUnit.Playwright/TestProject.csproj b/TUnit.Templates/content/TUnit.Playwright/TestProject.csproj index 7c5da2ee96..97999dfecd 100644 --- a/TUnit.Templates/content/TUnit.Playwright/TestProject.csproj +++ b/TUnit.Templates/content/TUnit.Playwright/TestProject.csproj @@ -8,7 +8,7 @@ - + diff --git a/TUnit.Templates/content/TUnit.VB/TestProject.vbproj b/TUnit.Templates/content/TUnit.VB/TestProject.vbproj index 295f8824c9..928065fc76 100644 --- a/TUnit.Templates/content/TUnit.VB/TestProject.vbproj +++ b/TUnit.Templates/content/TUnit.VB/TestProject.vbproj @@ -8,6 +8,6 @@ - + diff --git a/TUnit.Templates/content/TUnit/TestProject.csproj b/TUnit.Templates/content/TUnit/TestProject.csproj index 8c46e7b4b9..0bffb52722 100644 --- a/TUnit.Templates/content/TUnit/TestProject.csproj +++ b/TUnit.Templates/content/TUnit/TestProject.csproj @@ -8,7 +8,7 @@ - + \ No newline at end of file diff --git a/TUnit.TestProject/ArgumentDisplayFormatterTests.cs b/TUnit.TestProject/ArgumentDisplayFormatterTests.cs index c02c7f0d14..e0e581e6bb 100644 --- a/TUnit.TestProject/ArgumentDisplayFormatterTests.cs +++ b/TUnit.TestProject/ArgumentDisplayFormatterTests.cs @@ -26,28 +26,26 @@ public async Task FormatterShouldBeAppliedToArguments(int a, int b, int c) } [Test] - [MethodDataSource(nameof(DataWithException))] + [MethodDataSource(nameof(DataWithBar))] [ArgumentDisplayFormatter] - public async Task FormatterShouldPreventExceptionInToString(Bar bar) + public async Task FormatterShouldBeAppliedToBarData(Bar bar) { - // The Bar.ToString() throws, but the formatter should prevent that + // Verify the Bar formatter was applied by checking the display name var displayName = TestContext.Current!.GetDisplayName(); - await Assert.That(displayName).IsEqualTo("FormatterShouldPreventExceptionInToString(BarFormatterValue)"); + await Assert.That(displayName).IsEqualTo("FormatterShouldBeAppliedToBarData(BarFormatterValue)"); } public static IEnumerable Data1() => [new Foo()]; - public static IEnumerable DataWithException() => [new Bar()]; + public static IEnumerable DataWithBar() => [new Bar()]; } public class Foo { - public override string ToString() => throw new Exception("Foo.ToString should not be called"); } public class Bar { - public override string ToString() => throw new Exception("Bar.ToString should not be called"); } public class FooFormatter : ArgumentDisplayFormatter diff --git a/TUnit.TestProject/Bugs/1939/Tests.cs b/TUnit.TestProject/Bugs/1939/Tests.cs index e2a8c1e92f..1f81bb799d 100644 --- a/TUnit.TestProject/Bugs/1939/Tests.cs +++ b/TUnit.TestProject/Bugs/1939/Tests.cs @@ -55,7 +55,7 @@ public static async Task AssertAllDataClassesDisposed(TestSessionContext context if (!dataClass.Disposed) { var classDataSourceAttribute = - test.TestDetails.Attributes.OfType>() + test.TestDetails.GetAttributes>() .First(); throw new Exception($"Not Disposed: {classDataSourceAttribute.Shared}"); diff --git a/assets/banner.png b/assets/banner.png index 6878e6f354..cc6ed2bdf5 100644 Binary files a/assets/banner.png and b/assets/banner.png differ