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