diff --git a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt index 40b8e51e1c..d4bda4466f 100644 --- a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -67,5 +67,5 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClass } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt index b258156575..85d3699447 100644 --- a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -85,7 +85,7 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource.Entries); + static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource.Entries); } @@ -161,7 +161,7 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClass } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource.Entries_0); } @@ -236,5 +236,5 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClass } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt index 17ca7315df..fe0a8cd101 100644 --- a/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -112,5 +112,5 @@ internal static class TUnit_TestProject_AfterTests_CleanupTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AfterTests_CleanupTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AfterTests_CleanupTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_AfterTests_CleanupTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AfterTests_CleanupTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt index 17ca7315df..fe0a8cd101 100644 --- a/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -112,5 +112,5 @@ internal static class TUnit_TestProject_AfterTests_CleanupTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AfterTests_CleanupTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AfterTests_CleanupTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_AfterTests_CleanupTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AfterTests_CleanupTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt index 8ce74c5c18..4bd714eb7b 100644 --- a/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -281,5 +281,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::System.Collect } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ArgsAsArrayTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ArgsAsArrayTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ArgsAsArrayTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ArgsAsArrayTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt index 5a53b13b3c..4d4f8cd19b 100644 --- a/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -149,5 +149,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::TUnit.TestProj } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ArgumentWithImplicitConverterTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ArgumentWithImplicitConverterTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ArgumentWithImplicitConverterTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ArgumentWithImplicitConverterTests__TestSource.Entries); } 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 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet10_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } 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 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet8_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } 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 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet9_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } 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 d67d8a3266..4086603606 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.Net4_7.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt index cd024d72e4..1835b2d1fd 100644 --- a/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -516,5 +516,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "value", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AsyncMethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AsyncMethodDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_AsyncMethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AsyncMethodDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt index 0c18da3ad6..8fca17c921 100644 --- a/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -95,5 +95,5 @@ internal static class TUnit_TestProject_AttributeTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AttributeTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AttributeTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_AttributeTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AttributeTests__TestSource.Entries); } 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 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet10_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } 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 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet8_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } 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 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet9_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } 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 d67d8a3266..4086603606 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.Net4_7.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt index c7cffd49d9..bf49a99b0d 100644 --- a/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -112,5 +112,5 @@ internal static class TUnit_TestProject_BeforeTests_SetupTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BeforeTests_SetupTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BeforeTests_SetupTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BeforeTests_SetupTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BeforeTests_SetupTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt index c7cffd49d9..bf49a99b0d 100644 --- a/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -112,5 +112,5 @@ internal static class TUnit_TestProject_BeforeTests_SetupTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BeforeTests_SetupTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BeforeTests_SetupTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BeforeTests_SetupTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BeforeTests_SetupTests__TestSource.Entries); } 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 5b74b505a1..506a18ca13 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet10_0.verified.txt @@ -84,5 +84,5 @@ internal static class TUnit_TestProject_Bugs__2971_Tests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__2971_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__2971_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__2971_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__2971_Tests__TestSource.Entries); } 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 5b74b505a1..506a18ca13 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet8_0.verified.txt @@ -84,5 +84,5 @@ internal static class TUnit_TestProject_Bugs__2971_Tests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__2971_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__2971_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__2971_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__2971_Tests__TestSource.Entries); } 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 5b74b505a1..506a18ca13 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet9_0.verified.txt @@ -84,5 +84,5 @@ internal static class TUnit_TestProject_Bugs__2971_Tests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__2971_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__2971_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__2971_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__2971_Tests__TestSource.Entries); } 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 897e0f1362..0467212ff8 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.Net4_7.verified.txt @@ -84,5 +84,5 @@ internal static class TUnit_TestProject_Bugs__2971_Tests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__2971_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__2971_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__2971_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__2971_Tests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt index 2abf9e98ab..92d82718eb 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -194,5 +194,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "arg2", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ClassAndMethodArgumentsTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ClassAndMethodArgumentsTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ClassAndMethodArgumentsTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ClassAndMethodArgumentsTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt index 8dab10fd1e..b2bb6d73a7 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -101,5 +101,5 @@ internal static class TUnit_TestProject_ClassConstructorTest__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ClassConstructorTest__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ClassConstructorTest__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ClassConstructorTest__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ClassConstructorTest__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt index 785f3f8c91..cbf117d53a 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -380,5 +380,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::TUnit.TestProj } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ClassDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ClassDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ClassDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ClassDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt index 73a74b02f0..8d9a296e22 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -130,5 +130,5 @@ internal static class TUnit_TestProject_ClassDataSourceDrivenTests2__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ClassDataSourceDrivenTests2__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ClassDataSourceDrivenTests2__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ClassDataSourceDrivenTests2__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ClassDataSourceDrivenTests2__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt index 8c9658f830..1d2d7b5c14 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -147,5 +147,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::TUnit.TestProj } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ClassDataSourceDrivenTestsSharedKeyed__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ClassDataSourceDrivenTestsSharedKeyed__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ClassDataSourceDrivenTestsSharedKeyed__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ClassDataSourceDrivenTestsSharedKeyed__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt index 9fb131d652..3b74c7197a 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -220,5 +220,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "value3", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ClassTupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ClassTupleDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ClassTupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ClassTupleDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt index b258156575..85d3699447 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -85,7 +85,7 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource.Entries); + static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource.Entries); } @@ -161,7 +161,7 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClass } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource.Entries_0); } @@ -236,5 +236,5 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClass } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet10_0.verified.txt index 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet10_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet8_0.verified.txt index 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet8_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet9_0.verified.txt index 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.DotNet9_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.Net4_7.verified.txt index d67d8a3266..4086603606 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.BasicTest_WithConflictingNamespace.Net4_7.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet10_0.verified.txt index 3fb5a9164d..d755ba780c 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet10_0.verified.txt @@ -522,5 +522,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "value", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_DataDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_DataDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_DataDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_DataDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet8_0.verified.txt index 3fb5a9164d..d755ba780c 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet8_0.verified.txt @@ -522,5 +522,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "value", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_DataDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_DataDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_DataDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_DataDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet9_0.verified.txt index 3fb5a9164d..d755ba780c 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.DotNet9_0.verified.txt @@ -522,5 +522,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "value", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_DataDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_DataDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_DataDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_DataDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.Net4_7.verified.txt index 445031327d..d1793df3ab 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.DataDrivenTest_WithConflictingNamespace.Net4_7.verified.txt @@ -522,5 +522,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "value", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_DataDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_DataDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_DataDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_DataDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet10_0.verified.txt index 3fadc7eef9..ebe16e36c3 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet10_0.verified.txt @@ -662,5 +662,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::TUnit.TestProj } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MatrixTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MatrixTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MatrixTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MatrixTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet8_0.verified.txt index 3fadc7eef9..ebe16e36c3 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet8_0.verified.txt @@ -662,5 +662,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::TUnit.TestProj } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MatrixTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MatrixTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MatrixTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MatrixTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet9_0.verified.txt index 3fadc7eef9..ebe16e36c3 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.DotNet9_0.verified.txt @@ -662,5 +662,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::TUnit.TestProj } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MatrixTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MatrixTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MatrixTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MatrixTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.Net4_7.verified.txt index 31e6e3927b..a07386699e 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MatrixTest_WithConflictingNamespace.Net4_7.verified.txt @@ -662,5 +662,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::TUnit.TestProj } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MatrixTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MatrixTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MatrixTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MatrixTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet10_0.verified.txt index 263ae098e3..17e51d2fa4 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet10_0.verified.txt @@ -518,5 +518,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string[]), "strings", } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MethodDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MethodDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet8_0.verified.txt index 263ae098e3..17e51d2fa4 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet8_0.verified.txt @@ -518,5 +518,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string[]), "strings", } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MethodDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MethodDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet9_0.verified.txt index 263ae098e3..17e51d2fa4 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.DotNet9_0.verified.txt @@ -518,5 +518,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string[]), "strings", } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MethodDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MethodDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.Net4_7.verified.txt index ac4577bef9..2e2148a732 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.MethodDataSource_WithConflictingNamespace.Net4_7.verified.txt @@ -518,5 +518,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string[]), "strings", } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MethodDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MethodDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet10_0.verified.txt index c23fc12831..f8e5acfcdf 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet10_0.verified.txt @@ -112,5 +112,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "value3", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_TupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_TupleDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_TupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_TupleDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet8_0.verified.txt index c23fc12831..f8e5acfcdf 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet8_0.verified.txt @@ -112,5 +112,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "value3", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_TupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_TupleDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_TupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_TupleDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet9_0.verified.txt index c23fc12831..f8e5acfcdf 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.DotNet9_0.verified.txt @@ -112,5 +112,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "value3", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_TupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_TupleDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_TupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_TupleDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.Net4_7.verified.txt index b410d7d924..0a26c26995 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConflictingNamespaceTests.TupleDataSource_WithConflictingNamespace.Net4_7.verified.txt @@ -112,5 +112,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "value3", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_TupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_TupleDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_TupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_TupleDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt index 292a6397e9..eab8497950 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -368,5 +368,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(ulong), "dummy", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ConstantArgumentsTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ConstantArgumentsTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ConstantArgumentsTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ConstantArgumentsTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt index e8ff88605b..189dce3fa8 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -98,5 +98,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "value", new } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1432_ConstantInBaseClassTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1432_ConstantInBaseClassTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1432_ConstantInBaseClassTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1432_ConstantInBaseClassTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt index c23a877105..dfdc065625 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -98,5 +98,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "value", new } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1432_ConstantsInInterpolatedStringsTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1432_ConstantsInInterpolatedStringsTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1432_ConstantsInInterpolatedStringsTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1432_ConstantsInInterpolatedStringsTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt index 2ca0bcc782..95973f1f10 100644 --- a/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -467,5 +467,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "password", n } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_CustomDisplayNameTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_CustomDisplayNameTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_CustomDisplayNameTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_CustomDisplayNameTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt index 445031327d..d755ba780c 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -522,5 +522,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "value", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_DataDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_DataDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_DataDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_DataDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt index 7bcd2a0e25..7275f550bc 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -179,5 +179,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "i", new global: } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_DataSourceClassCombinedWithDataSourceMethod__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_DataSourceClassCombinedWithDataSourceMethod__TestSource.Entries); + static readonly int _r_TUnit_TestProject_DataSourceClassCombinedWithDataSourceMethod__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_DataSourceClassCombinedWithDataSourceMethod__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt index 170f4c199c..7bd5762252 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -217,5 +217,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "value3", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_DataSourceGeneratorTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_DataSourceGeneratorTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_DataSourceGeneratorTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_DataSourceGeneratorTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt index 427fc6d975..08fe15fda7 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -100,5 +100,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "value4", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AutoDataTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AutoDataTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_AutoDataTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AutoDataTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt index 7ee907669f..6dbf771d6d 100644 --- a/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -609,5 +609,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(decimal), "batchingSiz } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_DecimalArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_DecimalArgumentTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_DecimalArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_DecimalArgumentTests__TestSource.Entries); } 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 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet10_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } 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 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet8_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } 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 0aa3823183..c7a10a0de9 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet9_0.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } 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 d67d8a3266..4086603606 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.Net4_7.verified.txt @@ -143,5 +143,5 @@ internal static class TUnit_TestProject_BasicTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_BasicTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_BasicTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_BasicTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt index 7cc471974d..fcbb6a38cd 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -101,5 +101,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "value", new } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1432_EnumMemberNamesTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1432_EnumMemberNamesTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1432_EnumMemberNamesTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1432_EnumMemberNamesTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt index 51d0f78112..8b978fbdf2 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -252,5 +252,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::TUnit.TestProj } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_EnumerableDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_EnumerableDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_EnumerableDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_EnumerableDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt index 5910a99bd2..0446e0f835 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -144,5 +144,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "value3", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_EnumerableTupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_EnumerableTupleDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_EnumerableTupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_EnumerableTupleDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt index e422b8139a..3b0d288124 100644 --- a/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -165,5 +165,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::System.Type), } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ExpectedArgumentTypeTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ExpectedArgumentTypeTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ExpectedArgumentTypeTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ExpectedArgumentTypeTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt index d5f58a0762..c404468758 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -184,5 +184,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(object), "expected", n } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_GenericMethodTests_AggregateBy_HasExpectedOutput__IEnumerable_TSourc_06BD488B_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_GenericMethodTests_AggregateBy_HasExpectedOutput__IEnumerable_TSourc_06BD488B_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_GenericMethodTests_AggregateBy_HasExpectedOutput__IEnumerable_TSourc_06BD488B_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_GenericMethodTests_AggregateBy_HasExpectedOutput__IEnumerable_TSourc_06BD488B_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericMethodWithDataSourceTests.Generic_Method_With_MethodDataSource_Should_Generate_Tests.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericMethodWithDataSourceTests.Generic_Method_With_MethodDataSource_Should_Generate_Tests.verified.txt index 9a023181c1..d9a76745c7 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericMethodWithDataSourceTests.Generic_Method_With_MethodDataSource_Should_Generate_Tests.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericMethodWithDataSourceTests.Generic_Method_With_MethodDataSource_Should_Generate_Tests.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -115,11 +115,11 @@ internal static class TUnit_TestProject_Bugs__4431_GenericClassNoDataSource_T_Sh } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassNoDataSource_T_Should_Create_Instance_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassNoDataSource_T_Should_Create_Instance_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassNoDataSource_T_Should_Create_Instance_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassNoDataSource_T_Should_Create_Instance_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassNoDataSource_T_Should_Create_Instance_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassNoDataSource_T_Should_Create_Instance_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassNoDataSource_T_Should_Create_Instance_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassNoDataSource_T_Should_Create_Instance_TestSource.Entries_1); } @@ -297,11 +297,11 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "number", new gl } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithMethodDataSource_T_Should_Have_Number__int_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassWithMethodDataSource_T_Should_Have_Number__int_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithMethodDataSource_T_Should_Have_Number__int_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassWithMethodDataSource_T_Should_Have_Number__int_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithMethodDataSource_T_Should_Have_Number__int_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassWithMethodDataSource_T_Should_Have_Number__int_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithMethodDataSource_T_Should_Have_Number__int_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassWithMethodDataSource_T_Should_Have_Number__int_TestSource.Entries_1); } @@ -475,7 +475,7 @@ internal static class TUnit_TestProject_Bugs__4431_NonGenericClassWithGenericMet } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_NonGenericClassWithGenericMethod_GenericMethod_Should_Work_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_NonGenericClassWithGenericMethod_GenericMethod_Should_Work_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__4431_NonGenericClassWithGenericMethod_GenericMethod_Should_Work_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__4431_NonGenericClassWithGenericMethod_GenericMethod_Should_Work_TestSource.Entries_0); } @@ -662,7 +662,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "input", new } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_NonGenericClassWithGenericMethodAndDataSource_GenericMeth_0AB5EDCD_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_NonGenericClassWithGenericMethodAndDataSource_GenericMeth_0AB5EDCD_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__4431_NonGenericClassWithGenericMethodAndDataSource_GenericMeth_0AB5EDCD_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__4431_NonGenericClassWithGenericMethodAndDataSource_GenericMeth_0AB5EDCD_TestSource.Entries_0); } @@ -903,11 +903,11 @@ internal static class TUnit_TestProject_Bugs__4431_GenericClassWithGenericMethod } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithGenericMethod_TClass_BothGeneric_Should_Work_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassWithGenericMethod_TClass_BothGeneric_Should_Work_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithGenericMethod_TClass_BothGeneric_Should_Work_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassWithGenericMethod_TClass_BothGeneric_Should_Work_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithGenericMethod_TClass_BothGeneric_Should_Work_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassWithGenericMethod_TClass_BothGeneric_Should_Work_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithGenericMethod_TClass_BothGeneric_Should_Work_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassWithGenericMethod_TClass_BothGeneric_Should_Work_TestSource.Entries_1); } @@ -1030,11 +1030,11 @@ internal static class TUnit_TestProject_Bugs__4431_GenericClassWithConstructor_T } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithConstructor_T_Should_Have_Label_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassWithConstructor_T_Should_Have_Label_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithConstructor_T_Should_Have_Label_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassWithConstructor_T_Should_Have_Label_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithConstructor_T_Should_Have_Label_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassWithConstructor_T_Should_Have_Label_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithConstructor_T_Should_Have_Label_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassWithConstructor_T_Should_Have_Label_TestSource.Entries_1); } @@ -1157,11 +1157,11 @@ internal static class TUnit_TestProject_Bugs__4431_MultipleTypeParameters_T1_T2_ } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_MultipleTypeParameters_T1_T2_Should_Handle_Multiple_Type__8C0B02C5_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_MultipleTypeParameters_T1_T2_Should_Handle_Multiple_Type__8C0B02C5_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__4431_MultipleTypeParameters_T1_T2_Should_Handle_Multiple_Type__8C0B02C5_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_MultipleTypeParameters_T1_T2_Should_Handle_Multiple_Type__8C0B02C5_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_MultipleTypeParameters_T1_T2_Should_Handle_Multiple_Type__8C0B02C5_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_MultipleTypeParameters_T1_T2_Should_Handle_Multiple_Type__8C0B02C5_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_Bugs__4431_MultipleTypeParameters_T1_T2_Should_Handle_Multiple_Type__8C0B02C5_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_MultipleTypeParameters_T1_T2_Should_Handle_Multiple_Type__8C0B02C5_TestSource.Entries_1); } @@ -1284,11 +1284,11 @@ internal static class TUnit_TestProject_Bugs__4431_DerivedGenericClass_T_Should_ } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_DerivedGenericClass_T_Should_Create_From_Base_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_DerivedGenericClass_T_Should_Create_From_Base_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__4431_DerivedGenericClass_T_Should_Create_From_Base_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_DerivedGenericClass_T_Should_Create_From_Base_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_DerivedGenericClass_T_Should_Create_From_Base_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_DerivedGenericClass_T_Should_Create_From_Base_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_Bugs__4431_DerivedGenericClass_T_Should_Create_From_Base_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_DerivedGenericClass_T_Should_Create_From_Base_TestSource.Entries_1); } @@ -1424,11 +1424,11 @@ internal static class TUnit_TestProject_Bugs__4431_GenericClassWithClassDataSour } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithClassDataSource_T_Should_Have_DataSource_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassWithClassDataSource_T_Should_Have_DataSource_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithClassDataSource_T_Should_Have_DataSource_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassWithClassDataSource_T_Should_Have_DataSource_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithClassDataSource_T_Should_Have_DataSource_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassWithClassDataSource_T_Should_Have_DataSource_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassWithClassDataSource_T_Should_Have_DataSource_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassWithClassDataSource_T_Should_Have_DataSource_TestSource.Entries_1); } @@ -1789,9 +1789,9 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "flag", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassGenericMethodWithDataSources_TClass_FullyGene_0A3B401E_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassGenericMethodWithDataSources_TClass_FullyGene_0A3B401E_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassGenericMethodWithDataSources_TClass_FullyGene_0A3B401E_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassGenericMethodWithDataSources_TClass_FullyGene_0A3B401E_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassGenericMethodWithDataSources_TClass_FullyGene_0A3B401E_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__4431_GenericClassGenericMethodWithDataSources_TClass_FullyGene_0A3B401E_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_Bugs__4431_GenericClassGenericMethodWithDataSources_TClass_FullyGene_0A3B401E_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_Bugs__4431_GenericClassGenericMethodWithDataSources_TClass_FullyGene_0A3B401E_TestSource.Entries_1); } 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 a67c21ec6a..649a526d6d 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_EmptyGenericRegistry_WhenNoGenericsFound.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_EmptyGenericRegistry_WhenNoGenericsFound.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -83,5 +83,5 @@ internal static class TUnit_TestProject_SimpleTestClass__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_SimpleTestClass__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_SimpleTestClass__TestSource.Entries); + static readonly int _r_TUnit_TestProject_SimpleTestClass__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_SimpleTestClass__TestSource.Entries); } 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 f78345395e..d3f4507584 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericConstraints_WithInstantiation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericConstraints_WithInstantiation.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -115,9 +115,9 @@ internal static class TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_ConstrainedGenericTestClass_T_TestMethod_TestSource.Entries_1); } 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 7e4e23678b..7e4b3c5e33 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestClass_WithExplicitInstantiation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestClass_WithExplicitInstantiation.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -115,9 +115,9 @@ internal static class TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_GenericTestClass_T_TestMethod_TestSource.Entries_1); } 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 4b78a69116..0a7b4f8008 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestMethod_WithExplicitInstantiation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestMethod_WithExplicitInstantiation.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -124,5 +124,5 @@ internal static class TUnit_TestProject_TestClass_GenericTestMethod_TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_TestClass_GenericTestMethod_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_TestClass_GenericTestMethod_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_TestClass_GenericTestMethod_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_TestClass_GenericTestMethod_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt index 95ae3748f9..733820cd1a 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -115,9 +115,9 @@ internal static class TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_T } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>(static () => TUnit_TestProject_MultiGenericTestClass_T1_T2_TestMethod_TestSource.Entries_1); } diff --git a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt index 9ed3d9dddd..078b3078b9 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -115,9 +115,9 @@ internal static class TUnit_TestProject_NestedGenericTestClass_T_TestMethod_Test } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_NestedGenericTestClass_T_TestMethod_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_NestedGenericTestClass_T_TestMethod_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_NestedGenericTestClass_T_TestMethod_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries>>(static () => TUnit_TestProject_NestedGenericTestClass_T_TestMethod_TestSource.Entries_0); } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_NestedGenericTestClass_T_TestMethod_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_NestedGenericTestClass_T_TestMethod_TestSource.Entries_1); + static readonly int _r_TUnit_TestProject_NestedGenericTestClass_T_TestMethod_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries>>(static () => TUnit_TestProject_NestedGenericTestClass_T_TestMethod_TestSource.Entries_1); } diff --git a/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt index 886e162947..a64949adef 100644 --- a/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -93,5 +93,5 @@ internal static class TUnit_TestProject_Bugs__1589_MyTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1589_MyTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1589_MyTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1589_MyTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1589_MyTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt index c92411f87d..7fc58c8b28 100644 --- a/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -94,5 +94,5 @@ internal static class TUnit_TestProject_Bugs__1594_MyTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1594_MyTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1594_MyTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1594_MyTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1594_MyTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt index 0a69be00d8..9d930b2712 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -197,7 +197,7 @@ internal static class TUnit_TestProject_PropertySetterTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_PropertySetterTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_PropertySetterTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_PropertySetterTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_PropertySetterTests__TestSource.Entries); } @@ -283,5 +283,5 @@ internal static class TUnit_TestProject_InheritedPropertySetterTests_Test_TestSo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_InheritedPropertySetterTests_Test_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_InheritedPropertySetterTests_Test_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_InheritedPropertySetterTests_Test_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_InheritedPropertySetterTests_Test_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt index cf1f00ad4c..1679c6d689 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -230,7 +230,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "value", new } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_InheritedTestsFromDifferentProjectTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_InheritedTestsFromDifferentProjectTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_InheritedTestsFromDifferentProjectTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_InheritedTestsFromDifferentProjectTests__TestSource.Entries); } @@ -309,7 +309,7 @@ internal static class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_ } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTest_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTest_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTest_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTest_TestSource.Entries_0); } @@ -389,5 +389,5 @@ internal static class TUnit_TestProject_InheritedTestsFromDifferentProjectTests_ } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTestWithMultipleCategories_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTestWithMultipleCategories_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTestWithMultipleCategories_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_InheritedTestsFromDifferentProjectTests_BaseTestWithMultipleCategories_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt index b258156575..85d3699447 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -85,7 +85,7 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource.Entries); + static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AbstractTests_ConcreteClass2__TestSource.Entries); } @@ -161,7 +161,7 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClass } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource.Entries_0); } @@ -236,5 +236,5 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClass } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt index b3d6ff71a5..bc92075324 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -121,7 +121,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "value", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1924_None_BaseClass__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1924_None_BaseClass__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1924_None_BaseClass__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1924_None_BaseClass__TestSource.Entries); } @@ -221,7 +221,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "value", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1924_None_Tests_Test__int_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1924_None_Tests_Test__int_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1924_None_Tests_Test__int_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1924_None_Tests_Test__int_TestSource.Entries_0); } @@ -321,7 +321,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "value", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1924_None_Tests2_Test__int_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1924_None_Tests2_Test__int_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1924_None_Tests2_Test__int_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1924_None_Tests2_Test__int_TestSource.Entries_0); } @@ -421,5 +421,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "value", new glo } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1924_None_Tests3_Test__int_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1924_None_Tests3_Test__int_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1924_None_Tests3_Test__int_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1924_None_Tests3_Test__int_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt index da957c0416..407cd78852 100644 --- a/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -88,5 +88,5 @@ internal static class TUnit_TestProject_Bugs__Issue2887_ActualTestClass__TestSou } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__Issue2887_ActualTestClass__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__Issue2887_ActualTestClass__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__Issue2887_ActualTestClass__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__Issue2887_ActualTestClass__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt index 45b9daf41e..69a67571e7 100644 --- a/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -662,5 +662,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::TUnit.TestProj } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MatrixTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MatrixTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MatrixTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MatrixTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt index ac4577bef9..17e51d2fa4 100644 --- a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -518,5 +518,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string[]), "strings", } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MethodDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MethodDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt index 5f4068232e..c0ff7c3057 100644 --- a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -213,5 +213,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::System.Threadi } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenWithCancellationTokenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MethodDataSourceDrivenWithCancellationTokenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MethodDataSourceDrivenWithCancellationTokenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MethodDataSourceDrivenWithCancellationTokenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt index 9e8ed32aa1..e8701ea576 100644 --- a/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -134,5 +134,5 @@ internal static class TUnit_TestProject_MultipleClassDataSourceDrivenTests__Test } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_MultipleClassDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_MultipleClassDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_MultipleClassDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_MultipleClassDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt index a56494e952..df8a04147c 100644 --- a/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -98,5 +98,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "name", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_NameOfArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_NameOfArgumentTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_NameOfArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_NameOfArgumentTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt index c22659d4d3..a72bd1f019 100644 --- a/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -148,5 +148,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(byte?), "byte2", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_NullableByteArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_NullableByteArgumentTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_NullableByteArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_NullableByteArgumentTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt index 9e1952e894..ec2d51d119 100644 --- a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -329,5 +329,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(uint), "i", new global } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_NumberArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_NumberArgumentTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_NumberArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_NumberArgumentTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt index 9e1952e894..ec2d51d119 100644 --- a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -329,5 +329,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(uint), "i", new global } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_NumberArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_NumberArgumentTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_NumberArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_NumberArgumentTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt index 6ff9e9d418..6d43469ae4 100644 --- a/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -249,5 +249,5 @@ internal static class TUnit_TestProject_PriorityFilteringTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_PriorityFilteringTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_PriorityFilteringTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_PriorityFilteringTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_PriorityFilteringTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt index b17dab8ac5..eead77f8f2 100644 --- a/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -197,5 +197,5 @@ internal static class TUnit_TestProject_PropertySetterTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_PropertySetterTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_PropertySetterTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_PropertySetterTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_PropertySetterTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/RepeatTests.Assembly_Level_Repeat.verified.txt b/TUnit.Core.SourceGenerator.Tests/RepeatTests.Assembly_Level_Repeat.verified.txt index 6e0cb8ea63..63b51c49d2 100644 --- a/TUnit.Core.SourceGenerator.Tests/RepeatTests.Assembly_Level_Repeat.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/RepeatTests.Assembly_Level_Repeat.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -124,5 +124,5 @@ internal static class TUnit_TestProject_AssemblyRepeatTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AssemblyRepeatTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AssemblyRepeatTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_AssemblyRepeatTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AssemblyRepeatTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt index 69d524bdff..d3145d35b1 100644 --- a/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -167,5 +167,5 @@ internal static class TUnit_TestProject_RepeatTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_RepeatTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_RepeatTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_RepeatTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_RepeatTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet10_0.verified.txt index 2791c93948..964b414140 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet10_0.verified.txt @@ -518,5 +518,5 @@ internal static class TUnit_TestProject_STAThreadTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_STAThreadTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_STAThreadTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_STAThreadTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_STAThreadTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet8_0.verified.txt index 2791c93948..964b414140 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet8_0.verified.txt @@ -518,5 +518,5 @@ internal static class TUnit_TestProject_STAThreadTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_STAThreadTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_STAThreadTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_STAThreadTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_STAThreadTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet9_0.verified.txt index 2791c93948..964b414140 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet9_0.verified.txt @@ -518,5 +518,5 @@ internal static class TUnit_TestProject_STAThreadTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_STAThreadTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_STAThreadTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_STAThreadTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_STAThreadTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.Net4_7.verified.txt index 111908d30d..87807a5a45 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.Net4_7.verified.txt @@ -518,5 +518,5 @@ internal static class TUnit_TestProject_STAThreadTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_STAThreadTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_STAThreadTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_STAThreadTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_STAThreadTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt index 5f2b1cf67b..f9e9b93a72 100644 --- a/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -163,5 +163,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "s", new glob } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_StringArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_StringArgumentTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_StringArgumentTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_StringArgumentTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt index aa86fb271a..60956f2ede 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -199,5 +199,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "input", new } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1304_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1304_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1304_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1304_Tests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt index fefca59b13..14af46a3d6 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -209,5 +209,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "item15", new } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1538_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1538_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1538_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1538_Tests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt index 87411f9021..faa8ba4fb6 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -88,5 +88,5 @@ internal static class TUnit_TestProject_Bugs__1539_Tests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1539_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1539_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1539_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1539_Tests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt index 886e162947..a64949adef 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -93,5 +93,5 @@ internal static class TUnit_TestProject_Bugs__1589_MyTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1589_MyTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1589_MyTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1589_MyTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1589_MyTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt index c92411f87d..7fc58c8b28 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -94,5 +94,5 @@ internal static class TUnit_TestProject_Bugs__1594_MyTests__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1594_MyTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1594_MyTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1594_MyTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1594_MyTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt index 369b3466f4..eebed70f39 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -143,5 +143,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(short), "value", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1603_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1603_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1603_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1603_Tests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt index 81588a186b..3ead91283e 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -99,5 +99,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "t", new glob } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1692_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1692_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1692_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1692_Tests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt index 8fe192bafc..d9ab80e920 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -155,5 +155,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "value", new } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1821_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1821_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__1821_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1821_Tests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet10_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet10_0.verified.txt index 1fa2114b14..e12b6432db 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet10_0.verified.txt @@ -69,7 +69,7 @@ internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource.Entries_0); } @@ -162,7 +162,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "condition", ne } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource.Entries_0); } @@ -257,5 +257,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "condition", ne } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet8_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet8_0.verified.txt index 1fa2114b14..e12b6432db 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet8_0.verified.txt @@ -69,7 +69,7 @@ internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource.Entries_0); } @@ -162,7 +162,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "condition", ne } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource.Entries_0); } @@ -257,5 +257,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "condition", ne } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet9_0.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet9_0.verified.txt index 1fa2114b14..e12b6432db 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet9_0.verified.txt @@ -69,7 +69,7 @@ internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource.Entries_0); } @@ -162,7 +162,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "condition", ne } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource.Entries_0); } @@ -257,5 +257,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "condition", ne } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.Net4_7.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.Net4_7.verified.txt index 4bff46e7a0..862d9edb8b 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.Net4_7.verified.txt @@ -69,7 +69,7 @@ internal static class TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test1_TestSource.Entries_0); } @@ -162,7 +162,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "condition", ne } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test2__bool_TestSource.Entries_0); } @@ -257,5 +257,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "condition", ne } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1889_DerivedTest_Test3__bool_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt index bee5f4470d..43d87b6af9 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -69,5 +69,5 @@ internal static class TUnit_TestProject_Bugs__1899_DerivedTest_Test1_TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__1899_DerivedTest_Test1_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__1899_DerivedTest_Test1_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__1899_DerivedTest_Test1_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__1899_DerivedTest_Test1_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt index 127d34e61b..465569e292 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -104,5 +104,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(long), "value", new gl } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__2083_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__2083_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__2083_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__2083_Tests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt index 28f36a3857..bc619a2256 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -143,5 +143,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(float), "d", new globa } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__2085_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__2085_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__2085_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__2085_Tests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt index 66c711821c..546d777591 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -209,5 +209,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(long[]), "arr", new gl } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__2112_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__2112_Tests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__2112_Tests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__2112_Tests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt index 5218871836..5a5867cf5b 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -260,5 +260,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(string), "expected", n } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__2136_Tests_GenericArgumentsTest__T_string_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__2136_Tests_GenericArgumentsTest__T_string_TestSource.Entries_0); + static readonly int _r_TUnit_TestProject_Bugs__2136_Tests_GenericArgumentsTest__T_string_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__2136_Tests_GenericArgumentsTest__T_string_TestSource.Entries_0); } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests5118.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests5118.Test.verified.txt index 9ae98644d0..e1c7eee64c 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests5118.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests5118.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -111,5 +111,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::System.Threadi } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_Bugs__5118_AsyncClassMethodDataSourceTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_Bugs__5118_AsyncClassMethodDataSourceTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_Bugs__5118_AsyncClassMethodDataSourceTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_Bugs__5118_AsyncClassMethodDataSourceTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt index d325130f7b..1e3f6fac51 100644 --- a/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -526,7 +526,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::System.Threadi } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_TimeoutCancellationTokenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_TimeoutCancellationTokenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_TimeoutCancellationTokenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_TimeoutCancellationTokenTests__TestSource.Entries); } @@ -651,7 +651,7 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::System.Threadi } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_TimeoutDoesNotFireTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_TimeoutDoesNotFireTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_TimeoutDoesNotFireTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_TimeoutDoesNotFireTests__TestSource.Entries); } @@ -776,5 +776,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(global::System.Threadi } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_CancellationTokenTriggeredTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_CancellationTokenTriggeredTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_CancellationTokenTriggeredTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_CancellationTokenTriggeredTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt index b410d7d924..f8e5acfcdf 100644 --- a/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -112,5 +112,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(bool), "value3", new g } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_TupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_TupleDataSourceDrivenTests__TestSource.Entries); + static readonly int _r_TUnit_TestProject_TupleDataSourceDrivenTests__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_TupleDataSourceDrivenTests__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt index 8f718c9ae4..80bc533698 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -101,5 +101,5 @@ global::TUnit.Core.ParameterMetadataFactory.Create(typeof(int), "c", new global: } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_AotDataSourceTest__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_AotDataSourceTest__TestSource.Entries); + static readonly int _r_TUnit_TestProject_AotDataSourceTest__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_AotDataSourceTest__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt index 851acb0381..a8b1b6668d 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -83,5 +83,5 @@ internal static class TUnit_TestProject_ConfigurationTest__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ConfigurationTest__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ConfigurationTest__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ConfigurationTest__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ConfigurationTest__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ModuleInitializer_Generation.verified.txt b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ModuleInitializer_Generation.verified.txt index 4576b480eb..2745bd62ea 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ModuleInitializer_Generation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ModuleInitializer_Generation.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -83,5 +83,5 @@ internal static class TUnit_TestProject_ModuleInitializerTest__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_ModuleInitializerTest__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_ModuleInitializerTest__TestSource.Entries); + static readonly int _r_TUnit_TestProject_ModuleInitializerTest__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_ModuleInitializerTest__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_StronglyTypedDelegates_Generation.verified.txt b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_StronglyTypedDelegates_Generation.verified.txt index e31a63a053..cc296bf90e 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_StronglyTypedDelegates_Generation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_StronglyTypedDelegates_Generation.verified.txt @@ -1,4 +1,4 @@ -// +// #pragma warning disable #nullable enable @@ -83,5 +83,5 @@ internal static class TUnit_TestProject_TypedDelegateTest__TestSource } internal static partial class TUnit_TestRegistration { - static readonly int _r_TUnit_TestProject_TypedDelegateTest__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(TUnit_TestProject_TypedDelegateTest__TestSource.Entries); + static readonly int _r_TUnit_TestProject_TypedDelegateTest__TestSource = global::TUnit.Core.SourceRegistrar.RegisterEntries(static () => TUnit_TestProject_TypedDelegateTest__TestSource.Entries); } diff --git a/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs b/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs index 31cdf7418f..ed02d6b4a9 100644 --- a/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs +++ b/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs @@ -505,13 +505,12 @@ private static void GenerateTestMetadata(CodeWriter writer, TestMethodMetadata t writer.Unindent(); writer.AppendLine("}"); - // Registration calls registrationIndex = 0; foreach (var group in groupedByConcreteClass) { var concreteClassName = group.Key; EmitRegistrationField(writer, $"{uniqueClassName}_{registrationIndex}", - $"global::TUnit.Core.SourceRegistrar.RegisterEntries({uniqueClassName}.Entries_{registrationIndex})"); + $"global::TUnit.Core.SourceRegistrar.RegisterEntries<{concreteClassName}>(static () => {uniqueClassName}.Entries_{registrationIndex})"); registrationIndex++; } } @@ -3555,9 +3554,8 @@ private static void GeneratePerClassTestSource(SourceProductionContext context, writer.Unindent(); writer.AppendLine("}"); - // Registration EmitRegistrationField(writer, classGroup.TestSourceName, - $"global::TUnit.Core.SourceRegistrar.RegisterEntries({classGroup.TestSourceName}.Entries)"); + $"global::TUnit.Core.SourceRegistrar.RegisterEntries<{classGroup.ClassFullyQualified}>(static () => {classGroup.TestSourceName}.Entries)"); context.AddSource($"{classGroup.TestSourceName}.g.cs", SourceText.From(writer.ToString(), Encoding.UTF8)); } diff --git a/TUnit.Core/SourceRegistrar.cs b/TUnit.Core/SourceRegistrar.cs index 0d1ebd97e6..cf15b246d0 100644 --- a/TUnit.Core/SourceRegistrar.cs +++ b/TUnit.Core/SourceRegistrar.cs @@ -88,19 +88,14 @@ public static int RegisterHook(ConcurrentBag bag, T hook) } /// - /// Registers test entries for a class using the TestEntry pattern. + /// Registers a factory for test entries. The factory is not invoked until the engine + /// needs to access the entries (during discovery/filtering), avoiding per-class JIT + /// compilation during module initialization. /// Returns a dummy value for use as a static field initializer. - /// Multiple calls for the same T are additive — entries accumulate. + /// Multiple calls for the same T are additive — factories accumulate. /// - public static int RegisterEntries<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)] T>(TestEntry[] entries) where T : class + public static int RegisterEntries<[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)] T>(Func[]> factory) where T : class { - if (entries is null || entries.Length == 0) - { - throw new InvalidOperationException( - $"Source-generated test registration failed: no entries for '{typeof(T).FullName}'. " + - "This indicates a source generator bug. Please report this issue."); - } - var key = typeof(T); while (true) @@ -109,7 +104,7 @@ public static int RegisterHook(ConcurrentBag bag, T hook) { if (existing is TestEntrySource existingSource) { - existingSource.AddEntries(entries); + existingSource.AddFactory(factory); return 0; } @@ -117,7 +112,7 @@ public static int RegisterHook(ConcurrentBag bag, T hook) $"Type mismatch in TestEntries for '{typeof(T).FullName}': expected TestEntrySource<{typeof(T).Name}>, found {existing.GetType().Name}"); } - if (Sources.TestEntries.TryAdd(key, new TestEntrySource(entries))) + if (Sources.TestEntries.TryAdd(key, new TestEntrySource(factory))) { return 0; } diff --git a/TUnit.Core/TestEntrySource.cs b/TUnit.Core/TestEntrySource.cs index 33f1b659e2..40eca82dff 100644 --- a/TUnit.Core/TestEntrySource.cs +++ b/TUnit.Core/TestEntrySource.cs @@ -5,7 +5,8 @@ namespace TUnit.Core; /// /// Thin non-generic wrapper around TestEntry<T>[] for engine access. -/// Provides filter data extraction and delegates materialization to TestEntry<T>.ToTestMetadata(). +/// Wraps one or more factories that produce entries, resolving lazily on first access +/// to avoid per-class JIT compilation during module initialization. /// #if !DEBUG [EditorBrowsable(EditorBrowsableState.Never)] @@ -15,43 +16,92 @@ public sealed class TestEntrySource< | DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicMethods)] T> : ITestEntrySource where T : class { - private TestEntry[] _entries; - private readonly string _className; + private List[]>>? _factories; + private volatile TestEntry[]? _entries; + private string? _className; + private readonly object _lock = new(); - public TestEntrySource(TestEntry[] entries) + public TestEntrySource(Func[]> factory) { - _entries = entries; - _className = TUnit.Core.Extensions.TestContextExtensions.GetNestedTypeName(typeof(T)); + _factories = [factory]; } /// - /// Appends additional entries. Used when multiple source-gen files register entries for the same T. + /// Adds another factory for the same T. Used when multiple source-gen files + /// register entries for the same class (e.g. generic instantiations). /// Thread-safe via lock since static field initializers may run concurrently. /// - internal void AddEntries(TestEntry[] additional) + internal void AddFactory(Func[]> factory) { lock (_lock) { - var combined = new TestEntry[_entries.Length + additional.Length]; - Array.Copy(_entries, 0, combined, 0, _entries.Length); - Array.Copy(additional, 0, combined, _entries.Length, additional.Length); - _entries = combined; + if (_entries is not null) + { + // Already resolved — merge eagerly + var additional = factory(); + _entries = [.. _entries, .. additional]; + return; + } + + _factories!.Add(factory); } } - private readonly object _lock = new(); + private TestEntry[] Resolve() + { + if (_entries is not null) + { + return _entries; + } + + lock (_lock) + { + if (_entries is not null) + { + return _entries; + } + + var factories = _factories!; + TestEntry[] entries; + + if (factories.Count == 1) + { + entries = factories[0](); + } + else + { + var allEntries = new List>(); + foreach (var factory in factories) + { + allEntries.AddRange(factory()); + } + entries = allEntries.ToArray(); + } + + if (entries.Length == 0) + { + throw new InvalidOperationException( + $"Source-generated test registration failed: no entries for '{typeof(T).FullName}'. " + + "This indicates a source generator bug. Please report this issue."); + } + + _entries = entries; + _factories = null; + return entries; + } + } - public int Count => _entries.Length; + public int Count => Resolve().Length; public Type ClassType => typeof(T); - public string ClassName => _className; + public string ClassName => _className ??= TUnit.Core.Extensions.TestContextExtensions.GetNestedTypeName(typeof(T)); public TestEntryFilterData GetFilterData(int index) { - var entry = _entries[index]; + var entry = Resolve()[index]; return new TestEntryFilterData { MethodName = entry.MethodName, - ClassName = _className, + ClassName = ClassName, Categories = entry.Categories, Properties = entry.Properties, DependsOn = entry.DependsOn, @@ -62,6 +112,6 @@ public TestEntryFilterData GetFilterData(int index) public IReadOnlyList Materialize(int index, string testSessionId) { - return [_entries[index].ToTestMetadata(testSessionId)]; + return [Resolve()[index].ToTestMetadata(testSessionId)]; } } diff --git a/TUnit.Engine/Building/Collectors/AotTestDataCollector.cs b/TUnit.Engine/Building/Collectors/AotTestDataCollector.cs index 508e9b6cd0..045b682a86 100644 --- a/TUnit.Engine/Building/Collectors/AotTestDataCollector.cs +++ b/TUnit.Engine/Building/Collectors/AotTestDataCollector.cs @@ -63,22 +63,45 @@ private IEnumerable CollectTestsFromTestEntries( string testSessionId, FilterHints filterHints) { + // Phase 0: Resolve lazy sources in parallel for type-matched classes. + // This turns sequential per-class JIT into parallel JIT, significantly + // reducing discovery time for large test suites. + if (Sources.TestEntries.Count > 1) + { + var sourcesToResolve = new List(Sources.TestEntries.Count); + foreach (var kvp in Sources.TestEntries) + { + if (!filterHints.HasHints || filterHints.CouldTypeMatch(kvp.Key)) + { + sourcesToResolve.Add(kvp.Value); + } + } + + if (sourcesToResolve.Count > 1) + { + Parallel.ForEach(sourcesToResolve, static source => _ = source.Count); + } + } + // Phase 1: Filter using pure data (no JIT of test-specific methods) - var totalEntries = Sources.TestEntries.Sum(static kvp => kvp.Value.Count); - var matching = new List<(ITestEntrySource Source, int Index)>(totalEntries); + var matching = new List<(ITestEntrySource Source, int Index)>(); var hasDependencies = false; foreach (var kvp in Sources.TestEntries) { var classType = kvp.Key; var source = kvp.Value; - var typeMatches = !filterHints.HasHints || filterHints.CouldTypeMatch(classType); + + if (filterHints.HasHints && !filterHints.CouldTypeMatch(classType)) + { + continue; + } for (var i = 0; i < source.Count; i++) { var filterData = source.GetFilterData(i); - if (typeMatches && (!filterHints.HasHints || filterHints.CouldMatch(filterData.ClassName, filterData.MethodName))) + if (!filterHints.HasHints || filterHints.CouldMatch(filterData.ClassName, filterData.MethodName)) { matching.Add((source, i)); if (filterData.DependsOn.Length > 0) diff --git a/TUnit.PublicAPI/Tests.Assertions_Library_Has_No_API_Changes.Net4_7.verified.txt b/TUnit.PublicAPI/Tests.Assertions_Library_Has_No_API_Changes.Net4_7.verified.txt index 9d341ae661..f92445bbfd 100644 --- a/TUnit.PublicAPI/Tests.Assertions_Library_Has_No_API_Changes.Net4_7.verified.txt +++ b/TUnit.PublicAPI/Tests.Assertions_Library_Has_No_API_Changes.Net4_7.verified.txt @@ -1824,6 +1824,11 @@ namespace .Conditions { public StringLengthValueAssertion(. stringContext) { } } + public class StringLengthWithInlineAssertionAssertion : . + { + protected override .<.> CheckAsync(. metadata) { } + protected override string GetExpectation() { } + } public class StringMatchesAssertion : .<..RegexMatchCollection> { public StringMatchesAssertion(. context, . regex) { } @@ -2109,28 +2114,6 @@ namespace . public static . IsValidJsonObject(this string value) { } } } -namespace . -{ - public class CountWrapper : ., . - where TCollection : . - { - public CountWrapper(. context) { } - public . Between(int minimum, int maximum, [.("minimum")] string? minExpression = null, [.("maximum")] string? maxExpression = null) { } - public . EqualTo(int expectedCount, [.("expectedCount")] string? expression = null) { } - public ._IsGreaterThan_TValue_Assertion GreaterThan(int expected, [.("expected")] string? expression = null) { } - public ._IsGreaterThanOrEqualTo_TValue_Assertion GreaterThanOrEqualTo(int expected, [.("expected")] string? expression = null) { } - public ._IsLessThan_TValue_Assertion LessThan(int expected, [.("expected")] string? expression = null) { } - public ._IsLessThanOrEqualTo_TValue_Assertion LessThanOrEqualTo(int expected, [.("expected")] string? expression = null) { } - public . NotEqualTo(int expected, [.("expected")] string? expression = null) { } - public ._IsGreaterThan_TValue_Assertion Positive() { } - public . Zero() { } - } - public class LengthWrapper : ., . - { - public LengthWrapper(. context) { } - public . EqualTo(int expectedLength, [.("expectedLength")] string? expression = null) { } - } -} namespace .Core { public class AndContinuation : . { } @@ -2358,11 +2341,6 @@ namespace .Extensions public static . CompletesWithin(this . source, timeout, [.("timeout")] string? expression = null) { } public static . EqualTo(this . source, TValue? expected, [.("expected")] string? expression = null) { } public static . Eventually(this . source, <., .> assertionBuilder, timeout, ? pollingInterval = default, [.("timeout")] string? timeoutExpression = null, [.("pollingInterval")] string? pollingIntervalExpression = null) { } - [("Use Length() instead, which provides all numeric assertion methods. Example: Asse" + - "(str).Length().IsGreaterThan(5)")] - public static ..LengthWrapper HasLength(this . source) { } - [("Use Length().IsEqualTo(expectedLength) instead.")] - public static . HasLength(this . source, int expectedLength, [.("expectedLength")] string? expression = null) { } public static . HasMessage(this . source, string expectedMessage, [.("expectedMessage")] string? expression = null) where TException : { } public static . HasMessage(this . source, string expectedMessage, comparison, [.("expectedMessage")] string? expression = null) @@ -2407,6 +2385,7 @@ namespace .Extensions public static ._IsGreaterThan_TValue_Assertion IsPositive(this . source) where TValue : struct, { } public static . Length(this . source) { } + public static . Length(this . source, <., .?> lengthAssertion, [.("lengthAssertion")] string? expression = null) { } public static . Member(this . source, .<>> memberSelector, <.<., TItem>, .<.>> assertions) { } public static . Member(this . source, .<>> memberSelector, <.<., TItem>, object> assertions) { } public static . Member(this . source, .<> memberSelector, <., .> assertions) { } @@ -5311,11 +5290,6 @@ namespace .Sources protected override string GetExpectation() { } public . HasAtLeast(int minCount, [.("minCount")] string? expression = null) { } public . HasAtMost(int maxCount, [.("maxCount")] string? expression = null) { } - [("Use Count() instead, which provides all numeric assertion methods. Example: Asser" + - "(list).Count().IsGreaterThan(5)")] - public ..CountWrapper HasCount() { } - [("Use Count().IsEqualTo(expectedCount) instead.")] - public . HasCount(int expectedCount, [.("expectedCount")] string? expression = null) { } public . HasCountBetween(int min, int max, [.("min")] string? minExpression = null, [.("max")] string? maxExpression = null) { } public . HasDistinctItems() { } public . HasDistinctItems(. comparer, [.("comparer")] string? comparerExpression = null) { } diff --git a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet10_0.verified.txt b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet10_0.verified.txt index 82d6d29bc4..a8ef282b22 100644 --- a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet10_0.verified.txt +++ b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet10_0.verified.txt @@ -1280,7 +1280,7 @@ namespace public static bool IsEnabled { get; set; } public static void RegisterAssembly(<.Assembly> assemblyLoader) { } public static void RegisterDynamic(.IDynamicTestSource testSource) { } - public static int RegisterEntries<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..PublicMethods | ..PublicProperties)] T>(.TestEntry[] entries) + public static int RegisterEntries<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..PublicMethods | ..PublicProperties)] T>(<.TestEntry[]> factory) where T : class { } public static void RegisterGlobalInitializer(<.> initializer) { } public static int RegisterHook(. bag, T hook) { } @@ -1521,7 +1521,7 @@ namespace public sealed class TestEntrySource<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..PublicMethods | ..PublicProperties)] T> : .ITestEntrySource where T : class { - public TestEntrySource(.TestEntry[] entries) { } + public TestEntrySource(<.TestEntry[]> factory) { } public string ClassName { get; } public ClassType { get; } public int Count { get; } diff --git a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet8_0.verified.txt b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet8_0.verified.txt index 1d18788c92..e9ed0a0976 100644 --- a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet8_0.verified.txt +++ b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet8_0.verified.txt @@ -1280,7 +1280,7 @@ namespace public static bool IsEnabled { get; set; } public static void RegisterAssembly(<.Assembly> assemblyLoader) { } public static void RegisterDynamic(.IDynamicTestSource testSource) { } - public static int RegisterEntries<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..PublicMethods | ..PublicProperties)] T>(.TestEntry[] entries) + public static int RegisterEntries<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..PublicMethods | ..PublicProperties)] T>(<.TestEntry[]> factory) where T : class { } public static void RegisterGlobalInitializer(<.> initializer) { } public static int RegisterHook(. bag, T hook) { } @@ -1521,7 +1521,7 @@ namespace public sealed class TestEntrySource<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..PublicMethods | ..PublicProperties)] T> : .ITestEntrySource where T : class { - public TestEntrySource(.TestEntry[] entries) { } + public TestEntrySource(<.TestEntry[]> factory) { } public string ClassName { get; } public ClassType { get; } public int Count { get; } diff --git a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet9_0.verified.txt b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet9_0.verified.txt index efdbcc7fdc..f2934aed1c 100644 --- a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet9_0.verified.txt +++ b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet9_0.verified.txt @@ -1280,7 +1280,7 @@ namespace public static bool IsEnabled { get; set; } public static void RegisterAssembly(<.Assembly> assemblyLoader) { } public static void RegisterDynamic(.IDynamicTestSource testSource) { } - public static int RegisterEntries<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..PublicMethods | ..PublicProperties)] T>(.TestEntry[] entries) + public static int RegisterEntries<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..PublicMethods | ..PublicProperties)] T>(<.TestEntry[]> factory) where T : class { } public static void RegisterGlobalInitializer(<.> initializer) { } public static int RegisterHook(. bag, T hook) { } @@ -1521,7 +1521,7 @@ namespace public sealed class TestEntrySource<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..PublicMethods | ..PublicProperties)] T> : .ITestEntrySource where T : class { - public TestEntrySource(.TestEntry[] entries) { } + public TestEntrySource(<.TestEntry[]> factory) { } public string ClassName { get; } public ClassType { get; } public int Count { get; } diff --git a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.Net4_7.verified.txt b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.Net4_7.verified.txt index 685adf2d3a..e0b73a707b 100644 --- a/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.Net4_7.verified.txt +++ b/TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.Net4_7.verified.txt @@ -1235,7 +1235,7 @@ namespace public static bool IsEnabled { get; set; } public static void RegisterAssembly(<.Assembly> assemblyLoader) { } public static void RegisterDynamic(.IDynamicTestSource testSource) { } - public static int RegisterEntries(.TestEntry[] entries) + public static int RegisterEntries(<.TestEntry[]> factory) where T : class { } public static void RegisterGlobalInitializer(<.> initializer) { } public static int RegisterHook(. bag, T hook) { } @@ -1292,8 +1292,6 @@ namespace public .IDataSourceAttribute? DataSourceAttribute { get; set; } public string DefinitionId { get; } public .TestContextEvents Events { get; set; } - [("Use StateBag property instead.")] - public . ObjectBag { get; } public . StateBag { get; set; } public required .MethodMetadata TestMetadata { get; init; } public static .TestBuilderContext? Current { get; } @@ -1472,7 +1470,7 @@ namespace public sealed class TestEntrySource : .ITestEntrySource where T : class { - public TestEntrySource(.TestEntry[] entries) { } + public TestEntrySource(<.TestEntry[]> factory) { } public string ClassName { get; } public ClassType { get; } public int Count { get; } @@ -1578,8 +1576,6 @@ namespace public TestRegisteredContext(.TestContext testContext) { } public string? CustomDisplayName { get; } public .DiscoveredTest DiscoveredTest { get; set; } - [("Use StateBag property instead.")] - public . ObjectBag { get; } public . StateBag { get; } public .TestContext TestContext { get; } public .TestDetails TestDetails { get; } @@ -1650,16 +1646,6 @@ namespace public . OnHookRegistered(.HookRegisteredContext context) { } public . OnTestDiscovered(.DiscoveredTestContext context) { } } - [("Use OpenTelemetry activity spans instead. Hook timings are now automatically reco" + - "rded as OTel child spans of the test activity.")] - public class Timing : <.Timing> - { - public Timing(string StepName, Start, End) { } - public Duration { get; } - public End { get; init; } - public Start { get; init; } - public string StepName { get; init; } - } public sealed class TypeArrayComparer : .<[]> { public static readonly .TypeArrayComparer Instance; @@ -2570,16 +2556,10 @@ namespace .Interfaces .<.Artifact> Artifacts { get; } .TextWriter ErrorOutput { get; } .TextWriter StandardOutput { get; } - [("Use OpenTelemetry activity spans instead. Hook timings are now automatically reco" + - "rded as OTel child spans of the test activity.")] - .<.Timing> Timings { get; } void AttachArtifact(.Artifact artifact); void AttachArtifact(string filePath, string? displayName = null, string? description = null); string GetErrorOutput(); string GetStandardOutput(); - [("Use OpenTelemetry activity spans instead. Hook timings are now automatically reco" + - "rded as OTel child spans of the test activity.")] - void RecordTiming(.Timing timing); void WriteError(string message); void WriteLine(string message); }