diff --git a/Directory.Packages.props b/Directory.Packages.props index a0355f0a1d..f0f7c1b64e 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -38,11 +38,11 @@ - - - - - + + + + + @@ -93,4 +93,4 @@ - \ No newline at end of file + diff --git a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt index 9e144497f2..e460936b0e 100644 --- a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete1.verified.txt @@ -28,18 +28,18 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.AbstractBaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass)), Name = "AssertClassName", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass1", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1)), Name = "ConcreteClass1", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt index 1da5f79842..d707fe70a3 100644 --- a/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AbstractTests.Concrete2.verified.txt @@ -29,18 +29,18 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "SecondTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "ConcreteClass2", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -111,18 +111,18 @@ internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.AbstractBaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass)), Name = "AssertClassName", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "ConcreteClass2", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -192,18 +192,18 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "SecondTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "ConcreteClass2", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -273,18 +273,18 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.AbstractBaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass)), Name = "AssertClassName", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass1", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1)), Name = "ConcreteClass1", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt index 9b3ea6d68c..6bdfb18c72 100644 --- a/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt @@ -27,18 +27,18 @@ internal sealed class CleanupTests_Test1_TestSource_GUID : global::TUnit.Core.In MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.CleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.CleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.CleanupTests)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.CleanupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.CleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.CleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.CleanupTests)), Name = "CleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -106,18 +106,18 @@ internal sealed class CleanupTests_Test2_TestSource_GUID : global::TUnit.Core.In MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.CleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.CleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.CleanupTests)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.CleanupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.CleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.CleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.CleanupTests)), Name = "CleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt index 9b3ea6d68c..6bdfb18c72 100644 --- a/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt @@ -27,18 +27,18 @@ internal sealed class CleanupTests_Test1_TestSource_GUID : global::TUnit.Core.In MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.CleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.CleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.CleanupTests)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.CleanupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.CleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.CleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.CleanupTests)), Name = "CleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -106,18 +106,18 @@ internal sealed class CleanupTests_Test2_TestSource_GUID : global::TUnit.Core.In MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.CleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.CleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.CleanupTests)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.CleanupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.CleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.CleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.CleanupTests)), Name = "CleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt index 80377dcad9..c8533b8ce8 100644 --- a/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt @@ -30,17 +30,17 @@ internal sealed class ArgsAsArrayTests_Params_TestSource_GUID : global::TUnit.Co MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ArgsAsArrayTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ArgsAsArrayTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ArgsAsArrayTests)), Name = "Params", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string[])) { Name = "arguments", - TypeReference = global::TUnit.Core.TypeReference.CreateArray(global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), 1), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string[])), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ArgsAsArrayTests).GetMethod("Params", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string[]) }, null)!.GetParameters()[0] } @@ -50,7 +50,7 @@ internal sealed class ArgsAsArrayTests_Params_TestSource_GUID : global::TUnit.Co var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ArgsAsArrayTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ArgsAsArrayTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ArgsAsArrayTests)), Name = "ArgsAsArrayTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -147,17 +147,17 @@ internal sealed class ArgsAsArrayTests_ParamsEnumerable_TestSource_GUID : global MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ArgsAsArrayTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ArgsAsArrayTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ArgsAsArrayTests)), Name = "ParamsEnumerable", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::System.Collections.Generic.IEnumerable)) { Name = "arguments", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEnumerable<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Collections.Generic.IEnumerable)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ArgsAsArrayTests).GetMethod("ParamsEnumerable", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::System.Collections.Generic.IEnumerable) }, null)!.GetParameters()[0] } @@ -167,7 +167,7 @@ internal sealed class ArgsAsArrayTests_ParamsEnumerable_TestSource_GUID : global var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ArgsAsArrayTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ArgsAsArrayTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ArgsAsArrayTests)), Name = "ArgsAsArrayTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -264,24 +264,24 @@ internal sealed class ArgsAsArrayTests_Following_Non_Params_TestSource_GUID : gl MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ArgsAsArrayTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ArgsAsArrayTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ArgsAsArrayTests)), Name = "Following_Non_Params", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "i", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ArgsAsArrayTests).GetMethod("Following_Non_Params", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::System.Collections.Generic.IEnumerable) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Collections.Generic.IEnumerable)) { Name = "arguments", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEnumerable<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Collections.Generic.IEnumerable)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ArgsAsArrayTests).GetMethod("Following_Non_Params", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::System.Collections.Generic.IEnumerable) }, null)!.GetParameters()[1] } @@ -291,7 +291,7 @@ internal sealed class ArgsAsArrayTests_Following_Non_Params_TestSource_GUID : gl var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ArgsAsArrayTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ArgsAsArrayTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ArgsAsArrayTests)), Name = "ArgsAsArrayTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt index 54faca884b..3a660ed234 100644 --- a/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ArgumentWithImplicitConverterTests.Test.verified.txt @@ -33,17 +33,17 @@ internal sealed class ArgumentWithImplicitConverterTests_Explicit_TestSource_GUI MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ArgumentWithImplicitConverterTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests)), Name = "Explicit", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.ExplicitInteger)) { Name = "integer", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ExplicitInteger, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ExplicitInteger)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests).GetMethod("Explicit", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.TestProject.ExplicitInteger) }, null)!.GetParameters()[0] } @@ -53,7 +53,7 @@ internal sealed class ArgumentWithImplicitConverterTests_Explicit_TestSource_GUI var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ArgumentWithImplicitConverterTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests)), Name = "ArgumentWithImplicitConverterTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -135,17 +135,17 @@ internal sealed class ArgumentWithImplicitConverterTests_Implicit_TestSource_GUI MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ArgumentWithImplicitConverterTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests)), Name = "Implicit", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.ImplicitInteger)) { Name = "integer", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ImplicitInteger, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ImplicitInteger)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests).GetMethod("Implicit", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.TestProject.ImplicitInteger) }, null)!.GetParameters()[0] } @@ -155,7 +155,7 @@ internal sealed class ArgumentWithImplicitConverterTests_Implicit_TestSource_GUI var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ArgumentWithImplicitConverterTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ArgumentWithImplicitConverterTests)), Name = "ArgumentWithImplicitConverterTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt index ec6b3bd938..31e4aa54ca 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyAfterTests.Test.verified.txt @@ -29,18 +29,18 @@ internal static class AssemblyBase1_AfterAll1_After_Assembly_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase1)), Name = "AfterAll1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.AssemblyBase1", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase1)), Name = "AssemblyBase1", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -105,18 +105,18 @@ internal static class AssemblyBase1_AfterEach1_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase1)), Name = "AfterEach1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.AssemblyBase1", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase1)), Name = "AssemblyBase1", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -180,18 +180,18 @@ internal static class AssemblyBase2_AfterAll2_After_Assembly_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase2)), Name = "AfterAll2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.AssemblyBase2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase2)), Name = "AssemblyBase2", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -256,18 +256,18 @@ internal static class AssemblyBase2_AfterEach2_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase2)), Name = "AfterEach2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.AssemblyBase2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase2)), Name = "AssemblyBase2", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -331,18 +331,18 @@ internal static class AssemblyBase3_AfterAll3_After_Assembly_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase3)), Name = "AfterAll3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.AssemblyBase3", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase3)), Name = "AssemblyBase3", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -407,18 +407,18 @@ internal static class AssemblyBase3_AfterEach3_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase3)), Name = "AfterEach3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.AssemblyBase3", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyBase3)), Name = "AssemblyBase3", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -482,18 +482,18 @@ internal static class AssemblyCleanupTests_AfterAllCleanUp_After_Assembly_GUIDIn MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AfterAllCleanUp", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.AssemblyCleanupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AssemblyCleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -558,17 +558,17 @@ internal static class AssemblyCleanupTests_AfterAllCleanUpWithContext_After_Asse MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AfterAllCleanUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.AssemblyHookContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.AssemblyHookContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.AssemblyHookContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests).GetMethod("AfterAllCleanUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.AssemblyHookContext) }, null)!.GetParameters()[0] } @@ -578,7 +578,7 @@ internal static class AssemblyCleanupTests_AfterAllCleanUpWithContext_After_Asse var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AssemblyCleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -643,18 +643,18 @@ internal static class AssemblyCleanupTests_AfterAllCleanUp2_After_Assembly_GUIDI MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AfterAllCleanUp2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.AssemblyCleanupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AssemblyCleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -719,24 +719,24 @@ internal static class AssemblyCleanupTests_AfterAllCleanUpWithContextAndToken_Af MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AfterAllCleanUpWithContextAndToken", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.AssemblyHookContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.AssemblyHookContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.AssemblyHookContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests).GetMethod("AfterAllCleanUpWithContextAndToken", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.AssemblyHookContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests).GetMethod("AfterAllCleanUpWithContextAndToken", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.AssemblyHookContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -746,7 +746,7 @@ internal static class AssemblyCleanupTests_AfterAllCleanUpWithContextAndToken_Af var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AssemblyCleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -811,18 +811,18 @@ internal static class AssemblyCleanupTests_Cleanup_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "Cleanup", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.AssemblyCleanupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AssemblyCleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -886,17 +886,17 @@ internal static class AssemblyCleanupTests_Cleanup_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "Cleanup", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests).GetMethod("Cleanup", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] } @@ -906,7 +906,7 @@ internal static class AssemblyCleanupTests_Cleanup_After_Test_GUIDInitializer var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AssemblyCleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -970,17 +970,17 @@ internal static class AssemblyCleanupTests_CleanupWithContext_After_Test_GUIDIni MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "CleanupWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "testContext", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests).GetMethod("CleanupWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -990,7 +990,7 @@ internal static class AssemblyCleanupTests_CleanupWithContext_After_Test_GUIDIni var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AssemblyCleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1054,24 +1054,24 @@ internal static class AssemblyCleanupTests_CleanupWithContext_After_Test_GUIDIni MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "CleanupWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "testContext", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests).GetMethod("CleanupWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests).GetMethod("CleanupWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -1081,7 +1081,7 @@ internal static class AssemblyCleanupTests_CleanupWithContext_After_Test_GUIDIni var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.AssemblyCleanupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.AssemblyCleanupTests)), Name = "AssemblyCleanupTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt index 592bf7f927..183ce15101 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyBeforeTests.Test.verified.txt @@ -29,18 +29,18 @@ internal static class AssemblyBase1_BeforeAll1_Before_Assembly_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase1)), Name = "BeforeAll1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.AssemblyBase1", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase1)), Name = "AssemblyBase1", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -105,18 +105,18 @@ internal static class AssemblyBase1_BeforeEach1_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase1)), Name = "BeforeEach1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.AssemblyBase1", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase1)), Name = "AssemblyBase1", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -180,18 +180,18 @@ internal static class AssemblyBase2_BeforeAll2_Before_Assembly_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase2)), Name = "BeforeAll2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.AssemblyBase2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase2)), Name = "AssemblyBase2", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -256,18 +256,18 @@ internal static class AssemblyBase2_BeforeEach2_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase2)), Name = "BeforeEach2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.AssemblyBase2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase2)), Name = "AssemblyBase2", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -331,18 +331,18 @@ internal static class AssemblyBase3_BeforeAll3_Before_Assembly_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase3)), Name = "BeforeAll3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.AssemblyBase3", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase3)), Name = "AssemblyBase3", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -407,18 +407,18 @@ internal static class AssemblyBase3_BeforeEach3_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase3)), Name = "BeforeEach3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.AssemblyBase3", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblyBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblyBase3)), Name = "AssemblyBase3", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -482,18 +482,18 @@ internal static class AssemblySetupTests_BeforeAllSetUp_Before_Assembly_GUIDInit MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "BeforeAllSetUp", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.AssemblySetupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "AssemblySetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -558,17 +558,17 @@ internal static class AssemblySetupTests_BeforeAllSetUpWithContext_Before_Assemb MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "BeforeAllSetUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.AssemblyHookContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.AssemblyHookContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.AssemblyHookContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests).GetMethod("BeforeAllSetUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.AssemblyHookContext) }, null)!.GetParameters()[0] } @@ -578,7 +578,7 @@ internal static class AssemblySetupTests_BeforeAllSetUpWithContext_Before_Assemb var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "AssemblySetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -643,18 +643,18 @@ internal static class AssemblySetupTests_BeforeAllSetUp2_Before_Assembly_GUIDIni MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "BeforeAllSetUp2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.AssemblySetupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "AssemblySetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -719,24 +719,24 @@ internal static class AssemblySetupTests_BeforeAllSetUpWithContext_Before_Assemb MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "BeforeAllSetUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.AssemblyHookContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.AssemblyHookContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.AssemblyHookContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests).GetMethod("BeforeAllSetUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.AssemblyHookContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests).GetMethod("BeforeAllSetUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.AssemblyHookContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -746,7 +746,7 @@ internal static class AssemblySetupTests_BeforeAllSetUpWithContext_Before_Assemb var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "AssemblySetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -811,18 +811,18 @@ internal static class AssemblySetupTests_Setup_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "Setup", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.AssemblySetupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "AssemblySetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -886,17 +886,17 @@ internal static class AssemblySetupTests_Setup_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "Setup", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests).GetMethod("Setup", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] } @@ -906,7 +906,7 @@ internal static class AssemblySetupTests_Setup_Before_Test_GUIDInitializer var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "AssemblySetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -970,17 +970,17 @@ internal static class AssemblySetupTests_SetupWithContext_Before_Test_GUIDInitia MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "SetupWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "testContext", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests).GetMethod("SetupWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -990,7 +990,7 @@ internal static class AssemblySetupTests_SetupWithContext_Before_Test_GUIDInitia var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "AssemblySetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1054,24 +1054,24 @@ internal static class AssemblySetupTests_SetupWithContext_Before_Test_GUIDInitia MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "SetupWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "testContext", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests).GetMethod("SetupWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests).GetMethod("SetupWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -1081,7 +1081,7 @@ internal static class AssemblySetupTests_SetupWithContext_Before_Test_GUIDInitia var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.AssemblySetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.AssemblySetupTests)), Name = "AssemblySetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 5f18b8ee5b..a1305087b5 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet10_0.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 5f18b8ee5b..a1305087b5 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet8_0.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 5f18b8ee5b..a1305087b5 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.DotNet9_0.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 ea4070a9a9..a2665445d5 100644 --- a/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AssemblyLoaderTests.Test.Net4_7.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Threading.Tasks.Extensions"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt index 79ef73b8a7..1cb61c7a15 100644 --- a/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AsyncMethodDataSourceDrivenTests.Test.verified.txt @@ -52,17 +52,17 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Sin MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSource_SingleValue", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests).GetMethod("AsyncMethodDataSource_SingleValue", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -72,7 +72,7 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Sin var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -172,24 +172,24 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Tup MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSource_Tuples", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests).GetMethod("AsyncMethodDataSource_Tuples", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests).GetMethod("AsyncMethodDataSource_Tuples", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string) }, null)!.GetParameters()[1] } @@ -199,7 +199,7 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Tup var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -299,17 +299,17 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Enu MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSource_Enumerable", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests).GetMethod("AsyncMethodDataSource_Enumerable", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -319,7 +319,7 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Enu var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -419,17 +419,17 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Fun MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSource_Func", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests).GetMethod("AsyncMethodDataSource_Func", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -439,7 +439,7 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Fun var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -539,17 +539,17 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Wit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSource_WithArguments", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests).GetMethod("AsyncMethodDataSource_WithArguments", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -559,7 +559,7 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Wit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -659,17 +659,17 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Ext MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSource_ExternalClass", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests).GetMethod("AsyncMethodDataSource_ExternalClass", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -679,7 +679,7 @@ internal sealed class AsyncMethodDataSourceDrivenTests_AsyncMethodDataSource_Ext var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -779,17 +779,17 @@ internal sealed class AsyncMethodDataSourceDrivenTests_ValueTaskMethodDataSource MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "ValueTaskMethodDataSource_SingleValue", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests).GetMethod("ValueTaskMethodDataSource_SingleValue", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -799,7 +799,7 @@ internal sealed class AsyncMethodDataSourceDrivenTests_ValueTaskMethodDataSource var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AsyncMethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AsyncMethodDataSourceDrivenTests)), Name = "AsyncMethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt index 74dd9044e1..bd74a1f1a5 100644 --- a/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/AttributeTests.Test.verified.txt @@ -39,18 +39,18 @@ internal sealed class AttributeTests_MyTest_TestSource_GUID : global::TUnit.Core MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AttributeTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AttributeTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AttributeTests)), Name = "MyTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AttributeTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AttributeTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AttributeTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AttributeTests)), Name = "AttributeTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 5f18b8ee5b..a1305087b5 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet10_0.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 5f18b8ee5b..a1305087b5 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet8_0.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 5f18b8ee5b..a1305087b5 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.DotNet9_0.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 ea4070a9a9..a2665445d5 100644 --- a/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BasicTests.Test.Net4_7.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Threading.Tasks.Extensions"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt index e73c595c6e..279c0098c8 100644 --- a/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BeforeAllTests.Test.verified.txt @@ -27,18 +27,18 @@ internal sealed class SetupTests_Test1_TestSource_GUID : global::TUnit.Core.Inte MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.SetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.SetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.SetupTests)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.SetupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.SetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.SetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.SetupTests)), Name = "SetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -106,18 +106,18 @@ internal sealed class SetupTests_Test2_TestSource_GUID : global::TUnit.Core.Inte MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.SetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.SetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.SetupTests)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.SetupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.SetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.SetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.SetupTests)), Name = "SetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt index e73c595c6e..279c0098c8 100644 --- a/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/BeforeTests.Test.verified.txt @@ -27,18 +27,18 @@ internal sealed class SetupTests_Test1_TestSource_GUID : global::TUnit.Core.Inte MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.SetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.SetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.SetupTests)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.SetupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.SetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.SetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.SetupTests)), Name = "SetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -106,18 +106,18 @@ internal sealed class SetupTests_Test2_TestSource_GUID : global::TUnit.Core.Inte MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.SetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.SetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.SetupTests)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.SetupTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.SetupTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.SetupTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.SetupTests)), Name = "SetupTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 e5d849e14d..b8fd3e5ea7 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet10_0.verified.txt @@ -28,18 +28,18 @@ internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Inte MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2971.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2971.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2971.Tests)), Name = "SimpleTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._2971.Tests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2971.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2971.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2971.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2971", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 e5d849e14d..b8fd3e5ea7 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet8_0.verified.txt @@ -28,18 +28,18 @@ internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Inte MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2971.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2971.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2971.Tests)), Name = "SimpleTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._2971.Tests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2971.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2971.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2971.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2971", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 e5d849e14d..b8fd3e5ea7 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.DotNet9_0.verified.txt @@ -28,18 +28,18 @@ internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Inte MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2971.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2971.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2971.Tests)), Name = "SimpleTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._2971.Tests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2971.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2971.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2971.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2971", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 ac2ef85dd5..e6b3197526 100644 --- a/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Bugs2971NullableTypeTest.Test.Net4_7.verified.txt @@ -28,18 +28,18 @@ internal sealed class Tests_SimpleTest_TestSource_GUID : global::TUnit.Core.Inte MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2971.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2971.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2971.Tests)), Name = "SimpleTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._2971.Tests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2971.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2971.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2971.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2971", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt index f9f312ef66..1237cedb95 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassAndMethodArgumentsTests.Test.verified.txt @@ -33,18 +33,18 @@ internal sealed class ClassAndMethodArgumentsTests_Simple_TestSource_GUID : glob MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassAndMethodArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests)), Name = "Simple", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.ClassAndMethodArgumentsTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassAndMethodArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests)), Name = "ClassAndMethodArgumentsTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -53,7 +53,7 @@ internal sealed class ClassAndMethodArgumentsTests_Simple_TestSource_GUID : glob new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "arg1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests).GetConstructor(new global::System.Type[] { typeof(string) })!.GetParameters()[0] } @@ -134,17 +134,17 @@ internal sealed class ClassAndMethodArgumentsTests_WithMethodLevel_TestSource_GU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassAndMethodArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests)), Name = "WithMethodLevel", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "arg2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests).GetMethod("WithMethodLevel", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -154,7 +154,7 @@ internal sealed class ClassAndMethodArgumentsTests_WithMethodLevel_TestSource_GU var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassAndMethodArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests)), Name = "ClassAndMethodArgumentsTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -163,7 +163,7 @@ internal sealed class ClassAndMethodArgumentsTests_WithMethodLevel_TestSource_GU new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "arg1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests).GetConstructor(new global::System.Type[] { typeof(string) })!.GetParameters()[0] } @@ -251,17 +251,17 @@ internal sealed class ClassAndMethodArgumentsTests_IgnoreParameters_TestSource_G MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassAndMethodArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests)), Name = "IgnoreParameters", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "arg2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests).GetMethod("IgnoreParameters", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -271,7 +271,7 @@ internal sealed class ClassAndMethodArgumentsTests_IgnoreParameters_TestSource_G var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassAndMethodArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests)), Name = "ClassAndMethodArgumentsTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -280,7 +280,7 @@ internal sealed class ClassAndMethodArgumentsTests_IgnoreParameters_TestSource_G new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "arg1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassAndMethodArgumentsTests).GetConstructor(new global::System.Type[] { typeof(string) })!.GetParameters()[0] } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt index ef04988102..b5a1c9ac47 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassConstructorTest.Test.verified.txt @@ -28,18 +28,18 @@ internal sealed class ClassConstructorTest_Test_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassConstructorTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassConstructorTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassConstructorTest)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.ClassConstructorTest", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassConstructorTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassConstructorTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassConstructorTest)), Name = "ClassConstructorTest", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -48,7 +48,7 @@ internal sealed class ClassConstructorTest_Test_TestSource_GUID : global::TUnit. new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.DummyReferenceTypeClass)) { Name = "dummyReferenceTypeClass", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DummyReferenceTypeClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DummyReferenceTypeClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassConstructorTest).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.DummyReferenceTypeClass) })!.GetParameters()[0] } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt index 40f4ffee77..e94e4f2c53 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests.Test.verified.txt @@ -31,17 +31,17 @@ internal sealed class ClassDataSourceDrivenTests_DataSource_Class_TestSource_GUI MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "DataSource_Class", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.Library.Models.SomeAsyncDisposableClass)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Library.Models.SomeAsyncDisposableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Models.SomeAsyncDisposableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("DataSource_Class", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.TestProject.Library.Models.SomeAsyncDisposableClass) }, null)!.GetParameters()[0] } @@ -51,7 +51,7 @@ internal sealed class ClassDataSourceDrivenTests_DataSource_Class_TestSource_GUI var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "ClassDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -131,17 +131,17 @@ internal sealed class ClassDataSourceDrivenTests_DataSource_Class_Generic_TestSo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "DataSource_Class_Generic", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.Library.Models.SomeAsyncDisposableClass)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Library.Models.SomeAsyncDisposableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Models.SomeAsyncDisposableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("DataSource_Class_Generic", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.TestProject.Library.Models.SomeAsyncDisposableClass) }, null)!.GetParameters()[0] } @@ -151,7 +151,7 @@ internal sealed class ClassDataSourceDrivenTests_DataSource_Class_Generic_TestSo var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "ClassDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -231,17 +231,17 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_1_ClassDataS MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "IsInitialized_With_1_ClassDataSource", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_1_ClassDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass) }, null)!.GetParameters()[0] } @@ -251,7 +251,7 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_1_ClassDataS var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "ClassDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -330,24 +330,24 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_2_ClassDataS MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "IsInitialized_With_2_ClassDataSources", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_2_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_2_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[1] } @@ -357,7 +357,7 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_2_ClassDataS var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "ClassDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -436,31 +436,31 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_3_ClassDataS MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "IsInitialized_With_3_ClassDataSources", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_3_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_3_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_3_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[2] } @@ -470,7 +470,7 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_3_ClassDataS var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "ClassDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -549,38 +549,38 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_4_ClassDataS MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "IsInitialized_With_4_ClassDataSources", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_4_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_4_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_4_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[2] }, new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class4", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_4_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[3] } @@ -590,7 +590,7 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_4_ClassDataS var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "ClassDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -669,45 +669,45 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_5_ClassDataS MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "IsInitialized_With_5_ClassDataSources", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_5_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_5_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_5_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[2] }, new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class4", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_5_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[3] }, new global::TUnit.Core.ParameterMetadata(typeof(InitializableClass)) { Name = "class5", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("InitializableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(InitializableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests).GetMethod("IsInitialized_With_5_ClassDataSources", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass), typeof(InitializableClass) }, null)!.GetParameters()[4] } @@ -717,7 +717,7 @@ internal sealed class ClassDataSourceDrivenTests_IsInitialized_With_5_ClassDataS var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests)), Name = "ClassDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt index 6ccc60e2bf..4b01cde3de 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTests2.Test.verified.txt @@ -34,18 +34,18 @@ internal sealed class ClassDataSourceDrivenTests2_Base_Derived1_TestSource_GUID MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2)), Name = "Base_Derived1", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.ClassDataSourceDrivenTests2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2)), Name = "ClassDataSourceDrivenTests2", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -54,7 +54,7 @@ internal sealed class ClassDataSourceDrivenTests2_Base_Derived1_TestSource_GUID new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2.Base)) { Name = "base", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests2.Base, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2.Base)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2.Base) })!.GetParameters()[0] } @@ -133,18 +133,18 @@ internal sealed class ClassDataSourceDrivenTests2_Base_Derived2_TestSource_GUID MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2)), Name = "Base_Derived2", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.ClassDataSourceDrivenTests2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2)), Name = "ClassDataSourceDrivenTests2", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -153,7 +153,7 @@ internal sealed class ClassDataSourceDrivenTests2_Base_Derived2_TestSource_GUID new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2.Base)) { Name = "base", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTests2.Base, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2.Base)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.ClassDataSourceDrivenTests2.Base) })!.GetParameters()[0] } diff --git a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt index 4ff5acba56..a280be43c1 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassDataSourceDrivenTestsSharedKeyed.Test.verified.txt @@ -32,17 +32,17 @@ internal sealed class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Tes MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed)), Name = "DataSource_Class", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(SomeAsyncDisposableClass)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("SomeAsyncDisposableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(SomeAsyncDisposableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed).GetMethod("DataSource_Class", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(SomeAsyncDisposableClass) }, null)!.GetParameters()[0] } @@ -52,7 +52,7 @@ internal sealed class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Tes var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed)), Name = "ClassDataSourceDrivenTestsSharedKeyed", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -133,17 +133,17 @@ internal sealed class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Gen MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed)), Name = "DataSource_Class_Generic", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(SomeAsyncDisposableClass)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("SomeAsyncDisposableClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(SomeAsyncDisposableClass)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed).GetMethod("DataSource_Class_Generic", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(SomeAsyncDisposableClass) }, null)!.GetParameters()[0] } @@ -153,7 +153,7 @@ internal sealed class ClassDataSourceDrivenTestsSharedKeyed_DataSource_Class_Gen var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassDataSourceDrivenTestsSharedKeyed)), Name = "ClassDataSourceDrivenTestsSharedKeyed", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt index e2e9061fd5..601643477e 100644 --- a/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ClassTupleDataSourceDrivenTests.Test.verified.txt @@ -228,31 +228,31 @@ internal sealed class ClassTupleDataSourceDrivenTests_DataSource_TupleMethod_Tes MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassTupleDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests)), Name = "DataSource_TupleMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests).GetMethod("DataSource_TupleMethod", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests).GetMethod("DataSource_TupleMethod", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests).GetMethod("DataSource_TupleMethod", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[2] } @@ -262,7 +262,7 @@ internal sealed class ClassTupleDataSourceDrivenTests_DataSource_TupleMethod_Tes var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ClassTupleDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests)), Name = "ClassTupleDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -271,21 +271,21 @@ internal sealed class ClassTupleDataSourceDrivenTests_DataSource_TupleMethod_Tes new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ClassTupleDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[2] } diff --git a/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt index 1da5f79842..d707fe70a3 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConcreteClassTests.Test.verified.txt @@ -29,18 +29,18 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "SecondTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "ConcreteClass2", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -111,18 +111,18 @@ internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.AbstractBaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass)), Name = "AssertClassName", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "ConcreteClass2", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -192,18 +192,18 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "SecondTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "ConcreteClass2", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -273,18 +273,18 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.AbstractBaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass)), Name = "AssertClassName", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass1", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1)), Name = "ConcreteClass1", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt index 2ce3011a51..69ea1112c0 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantArgumentsTests.Test.verified.txt @@ -31,17 +31,17 @@ internal sealed class ConstantArgumentsTests_String1_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "String1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "dummy", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ConstantArgumentsTests).GetMethod("String1", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -51,7 +51,7 @@ internal sealed class ConstantArgumentsTests_String1_TestSource_GUID : global::T var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "ConstantArgumentsTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -130,17 +130,17 @@ internal sealed class ConstantArgumentsTests_Int_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "Int", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "dummy", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ConstantArgumentsTests).GetMethod("Int", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -150,7 +150,7 @@ internal sealed class ConstantArgumentsTests_Int_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "ConstantArgumentsTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -229,17 +229,17 @@ internal sealed class ConstantArgumentsTests_Double_TestSource_GUID : global::TU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "Double", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(double)) { Name = "dummy", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("double, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(double)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ConstantArgumentsTests).GetMethod("Double", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(double) }, null)!.GetParameters()[0] } @@ -249,7 +249,7 @@ internal sealed class ConstantArgumentsTests_Double_TestSource_GUID : global::TU var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "ConstantArgumentsTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -328,17 +328,17 @@ internal sealed class ConstantArgumentsTests_Float_TestSource_GUID : global::TUn MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "Float", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(float)) { Name = "dummy", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("float, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(float)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ConstantArgumentsTests).GetMethod("Float", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(float) }, null)!.GetParameters()[0] } @@ -348,7 +348,7 @@ internal sealed class ConstantArgumentsTests_Float_TestSource_GUID : global::TUn var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "ConstantArgumentsTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -427,17 +427,17 @@ internal sealed class ConstantArgumentsTests_Long_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "Long", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(long)) { Name = "dummy", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("long, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(long)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ConstantArgumentsTests).GetMethod("Long", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(long) }, null)!.GetParameters()[0] } @@ -447,7 +447,7 @@ internal sealed class ConstantArgumentsTests_Long_TestSource_GUID : global::TUni var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "ConstantArgumentsTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -526,17 +526,17 @@ internal sealed class ConstantArgumentsTests_UInt_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "UInt", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(uint)) { Name = "dummy", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("uint, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(uint)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ConstantArgumentsTests).GetMethod("UInt", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(uint) }, null)!.GetParameters()[0] } @@ -546,7 +546,7 @@ internal sealed class ConstantArgumentsTests_UInt_TestSource_GUID : global::TUni var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "ConstantArgumentsTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -625,17 +625,17 @@ internal sealed class ConstantArgumentsTests_ULong_TestSource_GUID : global::TUn MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "ULong", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(ulong)) { Name = "dummy", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("ulong, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(ulong)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ConstantArgumentsTests).GetMethod("ULong", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(ulong) }, null)!.GetParameters()[0] } @@ -645,7 +645,7 @@ internal sealed class ConstantArgumentsTests_ULong_TestSource_GUID : global::TUn var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConstantArgumentsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConstantArgumentsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConstantArgumentsTests)), Name = "ConstantArgumentsTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt index 0e8ed529d1..d756c1631a 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantInBaseClassTests.Test.verified.txt @@ -31,17 +31,17 @@ internal sealed class ConstantInBaseClassTests_SomeTest_TestSource_GUID : global MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests)), Name = "SomeTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests).GetMethod("SomeTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -51,7 +51,7 @@ internal sealed class ConstantInBaseClassTests_SomeTest_TestSource_GUID : global var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1432.ConstantInBaseClassTests)), Name = "ConstantInBaseClassTests", Namespace = "TUnit.TestProject.Bugs._1432", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt index 1c64a63bf9..77d6fd2c2d 100644 --- a/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ConstantsInInterpolatedStringsTests.Test.verified.txt @@ -31,17 +31,17 @@ internal sealed class ConstantsInInterpolatedStringsTests_SomeTest_TestSource_GU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests)), Name = "SomeTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests).GetMethod("SomeTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -51,7 +51,7 @@ internal sealed class ConstantsInInterpolatedStringsTests_SomeTest_TestSource_GU var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1432.ConstantsInInterpolatedStringsTests)), Name = "ConstantsInInterpolatedStringsTests", Namespace = "TUnit.TestProject.Bugs._1432", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt index a6f944d328..ab06c20bd4 100644 --- a/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/CustomDisplayNameTests.Test.verified.txt @@ -29,18 +29,18 @@ internal sealed class CustomDisplayNameTests_Test_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.CustomDisplayNameTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "CustomDisplayNameTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -123,18 +123,18 @@ internal sealed class CustomDisplayNameTests_Test2_TestSource_GUID : global::TUn MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.CustomDisplayNameTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "CustomDisplayNameTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -221,31 +221,31 @@ internal sealed class CustomDisplayNameTests_Test3_TestSource_GUID : global::TUn MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "Test3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.CustomDisplayNameTests).GetMethod("Test3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(int), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.CustomDisplayNameTests).GetMethod("Test3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(int), typeof(bool) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.CustomDisplayNameTests).GetMethod("Test3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(int), typeof(bool) }, null)!.GetParameters()[2] } @@ -255,7 +255,7 @@ internal sealed class CustomDisplayNameTests_Test3_TestSource_GUID : global::TUn var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "CustomDisplayNameTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -359,17 +359,17 @@ internal sealed class CustomDisplayNameTests_MethodDataSourceTest_TestSource_GUI MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "MethodDataSourceTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "foo", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.CustomDisplayNameTests).GetMethod("MethodDataSourceTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -379,7 +379,7 @@ internal sealed class CustomDisplayNameTests_MethodDataSourceTest_TestSource_GUI var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "CustomDisplayNameTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -474,24 +474,24 @@ internal sealed class CustomDisplayNameTests_TestParameterNamePrefixBug_TestSour MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "TestParameterNamePrefixBug", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "someValue", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.CustomDisplayNameTests).GetMethod("TestParameterNamePrefixBug", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "someValueType", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.CustomDisplayNameTests).GetMethod("TestParameterNamePrefixBug", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string) }, null)!.GetParameters()[1] } @@ -501,7 +501,7 @@ internal sealed class CustomDisplayNameTests_TestParameterNamePrefixBug_TestSour var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "CustomDisplayNameTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -593,17 +593,17 @@ internal sealed class CustomDisplayNameTests_PasswordTest_TestSource_GUID : glob MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "PasswordTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "password", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.CustomDisplayNameTests).GetMethod("PasswordTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -613,7 +613,7 @@ internal sealed class CustomDisplayNameTests_PasswordTest_TestSource_GUID : glob var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "CustomDisplayNameTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -703,18 +703,18 @@ internal sealed class CustomDisplayNameTests_SameClassConstantTest_TestSource_GU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "SameClassConstantTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.CustomDisplayNameTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "CustomDisplayNameTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -797,18 +797,18 @@ internal sealed class CustomDisplayNameTests_DifferentClassConstantTest_TestSour MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "DifferentClassConstantTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.CustomDisplayNameTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "CustomDisplayNameTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -891,18 +891,18 @@ internal sealed class CustomDisplayNameTests_NestedClassConstantTest_TestSource_ MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "NestedClassConstantTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.CustomDisplayNameTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.CustomDisplayNameTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.CustomDisplayNameTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.CustomDisplayNameTests)), Name = "CustomDisplayNameTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt index 3552003c46..51984ca13c 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataDrivenTests.Test.verified.txt @@ -33,17 +33,17 @@ internal sealed class DataDrivenTests_DataSource_Method_TestSource_GUID : global MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataSource_Method", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("DataSource_Method", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -53,7 +53,7 @@ internal sealed class DataDrivenTests_DataSource_Method_TestSource_GUID : global var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -135,24 +135,24 @@ internal sealed class DataDrivenTests_DataSource_Method_TestSource_GUID : global MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataSource_Method", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("DataSource_Method", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("DataSource_Method", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string) }, null)!.GetParameters()[1] } @@ -162,7 +162,7 @@ internal sealed class DataDrivenTests_DataSource_Method_TestSource_GUID : global var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -244,17 +244,17 @@ internal sealed class DataDrivenTests_EnumValue_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "EnumValue", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.TestEnum)) { Name = "testEnum", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TestEnum, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TestEnum)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("EnumValue", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.TestProject.TestEnum) }, null)!.GetParameters()[0] } @@ -264,7 +264,7 @@ internal sealed class DataDrivenTests_EnumValue_TestSource_GUID : global::TUnit. var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -344,17 +344,17 @@ internal sealed class DataDrivenTests_NullValue_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "NullValue", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("NullValue", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -364,7 +364,7 @@ internal sealed class DataDrivenTests_NullValue_TestSource_GUID : global::TUnit. var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -444,17 +444,17 @@ internal sealed class DataDrivenTests_EmptyString_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "EmptyString", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("EmptyString", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -464,7 +464,7 @@ internal sealed class DataDrivenTests_EmptyString_TestSource_GUID : global::TUni var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -544,17 +544,17 @@ internal sealed class DataDrivenTests_NonEmptyString_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "NonEmptyString", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("NonEmptyString", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -564,7 +564,7 @@ internal sealed class DataDrivenTests_NonEmptyString_TestSource_GUID : global::T var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -646,17 +646,17 @@ internal sealed class DataDrivenTests_BooleanString_TestSource_GUID : global::TU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "BooleanString", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool?)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("T?, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool?)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("BooleanString", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool?) }, null)!.GetParameters()[0] } @@ -666,7 +666,7 @@ internal sealed class DataDrivenTests_BooleanString_TestSource_GUID : global::TU var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -746,17 +746,17 @@ internal sealed class DataDrivenTests_Type_TestSource_GUID : global::TUnit.Core. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "Type", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::System.Type)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Type, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Type)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("Type", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::System.Type) }, null)!.GetParameters()[0] } @@ -766,7 +766,7 @@ internal sealed class DataDrivenTests_Type_TestSource_GUID : global::TUnit.Core. var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -846,17 +846,17 @@ internal sealed class DataDrivenTests_IntegerArray_TestSource_GUID : global::TUn MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "IntegerArray", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int[])) { Name = "values", - TypeReference = global::TUnit.Core.TypeReference.CreateArray(global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), 1), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int[])), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("IntegerArray", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int[]) }, null)!.GetParameters()[0] } @@ -866,7 +866,7 @@ internal sealed class DataDrivenTests_IntegerArray_TestSource_GUID : global::TUn var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -946,17 +946,17 @@ internal sealed class DataDrivenTests_IntMaxValue_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "IntMaxValue", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataDrivenTests).GetMethod("IntMaxValue", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -966,7 +966,7 @@ internal sealed class DataDrivenTests_IntMaxValue_TestSource_GUID : global::TUni var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataDrivenTests)), Name = "DataDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt index 61ad7430f2..03cc8492fc 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceClassCombinedWithDataSourceMethodTests.Test.verified.txt @@ -107,17 +107,17 @@ internal sealed class DataSourceClassCombinedWithDataSourceMethod_DataSourceClas MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod)), Name = "DataSourceClassCombinedWithDataSourceMethodTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "i", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod).GetMethod("DataSourceClassCombinedWithDataSourceMethodTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -127,7 +127,7 @@ internal sealed class DataSourceClassCombinedWithDataSourceMethod_DataSourceClas var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod)), Name = "DataSourceClassCombinedWithDataSourceMethod", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -136,7 +136,7 @@ internal sealed class DataSourceClassCombinedWithDataSourceMethod_DataSourceClas new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "i", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceClassCombinedWithDataSourceMethod).GetConstructor(new global::System.Type[] { typeof(int) })!.GetParameters()[0] } diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt index 9a25992a0b..31d0215aa0 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Typed.verified.txt @@ -37,17 +37,17 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method_TestSource_G MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataSourceGeneratorTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataSourceGeneratorTests)), Name = "GeneratedData_Method", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetMethod("GeneratedData_Method", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -57,7 +57,7 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method_TestSource_G var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataSourceGeneratorTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataSourceGeneratorTests)), Name = "DataSourceGeneratorTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -66,21 +66,21 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method_TestSource_G new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[2] } @@ -169,31 +169,31 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method2_TestSource_ MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataSourceGeneratorTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataSourceGeneratorTests)), Name = "GeneratedData_Method2", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetMethod("GeneratedData_Method2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetMethod("GeneratedData_Method2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetMethod("GeneratedData_Method2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[2] } @@ -203,7 +203,7 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method2_TestSource_ var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataSourceGeneratorTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataSourceGeneratorTests)), Name = "DataSourceGeneratorTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -212,21 +212,21 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method2_TestSource_ new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[2] } @@ -315,31 +315,31 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method3_TestSource_ MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataSourceGeneratorTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataSourceGeneratorTests)), Name = "GeneratedData_Method3", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetMethod("GeneratedData_Method3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetMethod("GeneratedData_Method3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetMethod("GeneratedData_Method3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[2] } @@ -349,7 +349,7 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method3_TestSource_ var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DataSourceGeneratorTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DataSourceGeneratorTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DataSourceGeneratorTests)), Name = "DataSourceGeneratorTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -358,21 +358,21 @@ internal sealed class DataSourceGeneratorTests_GeneratedData_Method3_TestSource_ new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DataSourceGeneratorTests).GetConstructor(new global::System.Type[] { typeof(int), typeof(string), typeof(bool) })!.GetParameters()[2] } diff --git a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt index e0841fbca7..1115c010cb 100644 --- a/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DataSourceGeneratorTests.Untyped.verified.txt @@ -30,38 +30,38 @@ internal sealed class AutoDataTests_Test1_TestSource_GUID : global::TUnit.Core.I MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AutoDataTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AutoDataTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AutoDataTests)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AutoDataTests).GetMethod("Test1", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(int), typeof(double), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AutoDataTests).GetMethod("Test1", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(int), typeof(double), typeof(bool) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(double)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("double, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(double)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AutoDataTests).GetMethod("Test1", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(int), typeof(double), typeof(bool) }, null)!.GetParameters()[2] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value4", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AutoDataTests).GetMethod("Test1", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(int), typeof(double), typeof(bool) }, null)!.GetParameters()[3] } @@ -71,7 +71,7 @@ internal sealed class AutoDataTests_Test1_TestSource_GUID : global::TUnit.Core.I var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AutoDataTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AutoDataTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AutoDataTests)), Name = "AutoDataTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt index ad36bf82d6..a598759a00 100644 --- a/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DecimalArgumentTests.Test.verified.txt @@ -33,24 +33,24 @@ internal sealed class DecimalArgumentTests_Transfer_TestSource_GUID : global::TU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "Transfer", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "debit", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("Transfer", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "credit", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("Transfer", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal) }, null)!.GetParameters()[1] } @@ -60,7 +60,7 @@ internal sealed class DecimalArgumentTests_Transfer_TestSource_GUID : global::TU var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -139,17 +139,17 @@ internal sealed class DecimalArgumentTests_SimpleDecimal_TestSource_GUID : globa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "SimpleDecimal", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("SimpleDecimal", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal) }, null)!.GetParameters()[0] } @@ -159,7 +159,7 @@ internal sealed class DecimalArgumentTests_SimpleDecimal_TestSource_GUID : globa var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -238,17 +238,17 @@ internal sealed class DecimalArgumentTests_SmallDecimal_TestSource_GUID : global MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "SmallDecimal", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("SmallDecimal", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal) }, null)!.GetParameters()[0] } @@ -258,7 +258,7 @@ internal sealed class DecimalArgumentTests_SmallDecimal_TestSource_GUID : global var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -337,17 +337,17 @@ internal sealed class DecimalArgumentTests_MaxDecimal_TestSource_GUID : global:: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "MaxDecimal", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("MaxDecimal", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal) }, null)!.GetParameters()[0] } @@ -357,7 +357,7 @@ internal sealed class DecimalArgumentTests_MaxDecimal_TestSource_GUID : global:: var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -436,17 +436,17 @@ internal sealed class DecimalArgumentTests_MinDecimal_TestSource_GUID : global:: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "MinDecimal", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("MinDecimal", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal) }, null)!.GetParameters()[0] } @@ -456,7 +456,7 @@ internal sealed class DecimalArgumentTests_MinDecimal_TestSource_GUID : global:: var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -535,17 +535,17 @@ internal sealed class DecimalArgumentTests_ExplicitDecimalValue_TestSource_GUID MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "ExplicitDecimalValue", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("ExplicitDecimalValue", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal) }, null)!.GetParameters()[0] } @@ -555,7 +555,7 @@ internal sealed class DecimalArgumentTests_ExplicitDecimalValue_TestSource_GUID var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -634,31 +634,31 @@ internal sealed class DecimalArgumentTests_MultipleDecimals_TestSource_GUID : gl MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "MultipleDecimals", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "a", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("MultipleDecimals", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal), typeof(decimal) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "b", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("MultipleDecimals", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal), typeof(decimal) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "c", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("MultipleDecimals", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal), typeof(decimal) }, null)!.GetParameters()[2] } @@ -668,7 +668,7 @@ internal sealed class DecimalArgumentTests_MultipleDecimals_TestSource_GUID : gl var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -749,17 +749,17 @@ internal sealed class DecimalArgumentTests_Test_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "test", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("Test", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal) }, null)!.GetParameters()[0] } @@ -769,7 +769,7 @@ internal sealed class DecimalArgumentTests_Test_TestSource_GUID : global::TUnit. var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -851,52 +851,52 @@ internal sealed class DecimalArgumentTests_TransactionDiscountCalculations_TestS MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "TransactionDiscountCalculations", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "amountPaying", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("TransactionDiscountCalculations", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "invoiceBalance", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("TransactionDiscountCalculations", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(bool) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "invoiceBalanceDue", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("TransactionDiscountCalculations", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(bool) }, null)!.GetParameters()[2] }, new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "discountAmount", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("TransactionDiscountCalculations", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(bool) }, null)!.GetParameters()[3] }, new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "appliedDiscountAmount", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("TransactionDiscountCalculations", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(bool) }, null)!.GetParameters()[4] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "discountAllowedForUser", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("TransactionDiscountCalculations", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(decimal), typeof(bool) }, null)!.GetParameters()[5] } @@ -906,7 +906,7 @@ internal sealed class DecimalArgumentTests_TransactionDiscountCalculations_TestS var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -986,17 +986,17 @@ internal sealed class DecimalArgumentTests_Equality3_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "Equality3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "credit", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("Equality3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal) }, null)!.GetParameters()[0] } @@ -1006,7 +1006,7 @@ internal sealed class DecimalArgumentTests_Equality3_TestSource_GUID : global::T var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1085,17 +1085,17 @@ internal sealed class DecimalArgumentTests_Equality4_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "Equality4", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "credit", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("Equality4", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal) }, null)!.GetParameters()[0] } @@ -1105,7 +1105,7 @@ internal sealed class DecimalArgumentTests_Equality4_TestSource_GUID : global::T var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1184,17 +1184,17 @@ internal sealed class DecimalArgumentTests_TestMethod_TestSource_GUID : global:: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(decimal)) { Name = "batchingSize", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("decimal, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(decimal)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.DecimalArgumentTests).GetMethod("TestMethod", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(decimal) }, null)!.GetParameters()[0] } @@ -1204,7 +1204,7 @@ internal sealed class DecimalArgumentTests_TestMethod_TestSource_GUID : global:: var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DecimalArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DecimalArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DecimalArgumentTests)), Name = "DecimalArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 5f18b8ee5b..a1305087b5 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet10_0.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 5f18b8ee5b..a1305087b5 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet8_0.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 5f18b8ee5b..a1305087b5 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.DotNet9_0.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 ea4070a9a9..a2665445d5 100644 --- a/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/DisableReflectionScannerTests.Test.Net4_7.verified.txt @@ -27,18 +27,18 @@ internal sealed class BasicTests_SynchronousTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "SynchronousTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -107,18 +107,18 @@ internal sealed class BasicTests_AsynchronousTest_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "AsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -186,18 +186,18 @@ internal sealed class BasicTests_ValueTaskAsynchronousTest_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "ValueTaskAsynchronousTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.ValueTask), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.ValueTask, System.Threading.Tasks.Extensions"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.ValueTask)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BasicTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BasicTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BasicTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BasicTests)), Name = "BasicTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt index b358226155..831c32f61a 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumMemberNamesTests.Test.verified.txt @@ -33,17 +33,17 @@ internal sealed class EnumMemberNamesTests_SomeTest_TestSource_GUID : global::TU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1432.EnumMemberNamesTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1432.EnumMemberNamesTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1432.EnumMemberNamesTests)), Name = "SomeTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1432.EnumMemberNamesTests).GetMethod("SomeTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -53,7 +53,7 @@ internal sealed class EnumMemberNamesTests_SomeTest_TestSource_GUID : global::TU var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1432.EnumMemberNamesTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1432.EnumMemberNamesTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1432.EnumMemberNamesTests)), Name = "EnumMemberNamesTests", Namespace = "TUnit.TestProject.Bugs._1432", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt index 00049955f8..10e455a1ca 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumerableDataSourceDrivenTests.Test.verified.txt @@ -52,17 +52,17 @@ internal sealed class EnumerableDataSourceDrivenTests_DataSource_Method_TestSour MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.EnumerableDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests)), Name = "DataSource_Method", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests).GetMethod("DataSource_Method", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -72,7 +72,7 @@ internal sealed class EnumerableDataSourceDrivenTests_DataSource_Method_TestSour var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.EnumerableDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests)), Name = "EnumerableDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -172,17 +172,17 @@ internal sealed class EnumerableDataSourceDrivenTests_DataSource_Method2_TestSou MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.EnumerableDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests)), Name = "DataSource_Method2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests).GetMethod("DataSource_Method2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -192,7 +192,7 @@ internal sealed class EnumerableDataSourceDrivenTests_DataSource_Method2_TestSou var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.EnumerableDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests)), Name = "EnumerableDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -292,17 +292,17 @@ internal sealed class EnumerableDataSourceDrivenTests_DataSource_WithBaseReturn_ MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.EnumerableDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests)), Name = "DataSource_WithBaseReturn", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests.BaseValue)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.EnumerableDataSourceDrivenTests.BaseValue, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests.BaseValue)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests).GetMethod("DataSource_WithBaseReturn", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests.BaseValue) }, null)!.GetParameters()[0] } @@ -312,7 +312,7 @@ internal sealed class EnumerableDataSourceDrivenTests_DataSource_WithBaseReturn_ var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.EnumerableDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.EnumerableDataSourceDrivenTests)), Name = "EnumerableDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt index 966e4ab394..34e085b546 100644 --- a/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/EnumerableTupleDataSourceDrivenTests.Test.verified.txt @@ -74,31 +74,31 @@ internal sealed class EnumerableTupleDataSourceDrivenTests_DataSource_TupleMetho MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.EnumerableTupleDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests)), Name = "DataSource_TupleMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests).GetMethod("DataSource_TupleMethod", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests).GetMethod("DataSource_TupleMethod", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests).GetMethod("DataSource_TupleMethod", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[2] } @@ -108,7 +108,7 @@ internal sealed class EnumerableTupleDataSourceDrivenTests_DataSource_TupleMetho var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.EnumerableTupleDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.EnumerableTupleDataSourceDrivenTests)), Name = "EnumerableTupleDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt index 4c1a8b6f67..f494e02133 100644 --- a/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/ExpectedArgumentTypeTests.Test.verified.txt @@ -43,24 +43,24 @@ internal sealed class ExpectedArgumentTypeTests_TypedArguments_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ExpectedArgumentTypeTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests)), Name = "TypedArguments", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("object, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(object)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests).GetMethod("TypedArguments", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(object), typeof(global::System.Type) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Type)) { Name = "expectedType", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Type, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Type)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests).GetMethod("TypedArguments", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(object), typeof(global::System.Type) }, null)!.GetParameters()[1] } @@ -70,7 +70,7 @@ internal sealed class ExpectedArgumentTypeTests_TypedArguments_TestSource_GUID : var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ExpectedArgumentTypeTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests)), Name = "ExpectedArgumentTypeTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -156,31 +156,31 @@ internal sealed class ExpectedArgumentTypeTests_EnumTypes_TestSource_GUID : glob MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ExpectedArgumentTypeTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests)), Name = "EnumTypes", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("object, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(object)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests).GetMethod("EnumTypes", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(object), typeof(global::System.Type), typeof(global::System.Type) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Type)) { Name = "expectedValueType", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Type, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Type)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests).GetMethod("EnumTypes", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(object), typeof(global::System.Type), typeof(global::System.Type) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Type)) { Name = "expectedEnumUnderlyingType", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Type, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Type)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests).GetMethod("EnumTypes", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(object), typeof(global::System.Type), typeof(global::System.Type) }, null)!.GetParameters()[2] } @@ -190,7 +190,7 @@ internal sealed class ExpectedArgumentTypeTests_EnumTypes_TestSource_GUID : glob var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ExpectedArgumentTypeTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ExpectedArgumentTypeTests)), Name = "ExpectedArgumentTypeTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt index a68d94de93..6784ab9732 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericMethodTests.Test.verified.txt @@ -29,52 +29,52 @@ internal sealed class GenericMethodTests_AggregateBy_HasExpectedOutput_TestSourc MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.GenericMethodTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.GenericMethodTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.GenericMethodTests)), Name = "AggregateBy_HasExpectedOutput", GenericTypeCount = 3, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "source", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEnumerable<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "TSource")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.IEnumerable<>), [new global::TUnit.Core.GenericParameter(0, true, "TSource")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[0]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "keySelector", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Func<,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "TSource"), global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Func<,>), [new global::TUnit.Core.GenericParameter(0, true, "TSource"), new global::TUnit.Core.GenericParameter(1, true, "TKey")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[1]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "seedSelector", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Func<,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey"), global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Func<,>), [new global::TUnit.Core.GenericParameter(1, true, "TKey"), new global::TUnit.Core.GenericParameter(2, true, "TAccumulate")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[2]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "func", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Func<,,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate"), global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "TSource"), global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Func<,,>), [new global::TUnit.Core.GenericParameter(2, true, "TAccumulate"), new global::TUnit.Core.GenericParameter(0, true, "TSource"), new global::TUnit.Core.GenericParameter(2, true, "TAccumulate")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[3]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "comparer", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEqualityComparer<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.IEqualityComparer<>), [new global::TUnit.Core.GenericParameter(1, true, "TKey")]), IsNullable = true, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[4]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "expected", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEnumerable<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.KeyValuePair<,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey"), global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate"))), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.IEnumerable<>), [new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.KeyValuePair<,>), [new global::TUnit.Core.GenericParameter(1, true, "TKey"), new global::TUnit.Core.GenericParameter(2, true, "TAccumulate")])]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[5]! } @@ -84,7 +84,7 @@ internal sealed class GenericMethodTests_AggregateBy_HasExpectedOutput_TestSourc var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.GenericMethodTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.GenericMethodTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.GenericMethodTests)), Name = "GenericMethodTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -178,52 +178,52 @@ internal sealed class GenericMethodTests_AggregateBy_HasExpectedOutput_TestSourc MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.GenericMethodTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.GenericMethodTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.GenericMethodTests)), Name = "AggregateBy_HasExpectedOutput", GenericTypeCount = 3, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "source", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEnumerable<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "TSource")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.IEnumerable<>), [new global::TUnit.Core.GenericParameter(0, true, "TSource")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[0]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "keySelector", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Func<,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "TSource"), global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Func<,>), [new global::TUnit.Core.GenericParameter(0, true, "TSource"), new global::TUnit.Core.GenericParameter(1, true, "TKey")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[1]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "seedSelector", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Func<,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey"), global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Func<,>), [new global::TUnit.Core.GenericParameter(1, true, "TKey"), new global::TUnit.Core.GenericParameter(2, true, "TAccumulate")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[2]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "func", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Func<,,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate"), global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "TSource"), global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Func<,,>), [new global::TUnit.Core.GenericParameter(2, true, "TAccumulate"), new global::TUnit.Core.GenericParameter(0, true, "TSource"), new global::TUnit.Core.GenericParameter(2, true, "TAccumulate")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[3]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "comparer", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEqualityComparer<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.IEqualityComparer<>), [new global::TUnit.Core.GenericParameter(1, true, "TKey")]), IsNullable = true, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[4]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "expected", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEnumerable<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.KeyValuePair<,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey"), global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate"))), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.IEnumerable<>), [new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.KeyValuePair<,>), [new global::TUnit.Core.GenericParameter(1, true, "TKey"), new global::TUnit.Core.GenericParameter(2, true, "TAccumulate")])]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[5]! } @@ -233,7 +233,7 @@ internal sealed class GenericMethodTests_AggregateBy_HasExpectedOutput_TestSourc var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.GenericMethodTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.GenericMethodTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.GenericMethodTests)), Name = "GenericMethodTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -332,52 +332,52 @@ internal sealed class GenericMethodTests_AggregateBy_HasExpectedOutput_TestSourc MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.GenericMethodTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.GenericMethodTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.GenericMethodTests)), Name = "AggregateBy_HasExpectedOutput", GenericTypeCount = 3, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "source", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEnumerable<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "TSource")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.IEnumerable<>), [new global::TUnit.Core.GenericParameter(0, true, "TSource")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[0]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "keySelector", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Func<,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "TSource"), global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Func<,>), [new global::TUnit.Core.GenericParameter(0, true, "TSource"), new global::TUnit.Core.GenericParameter(1, true, "TKey")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[1]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "seedSelector", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Func<,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey"), global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Func<,>), [new global::TUnit.Core.GenericParameter(1, true, "TKey"), new global::TUnit.Core.GenericParameter(2, true, "TAccumulate")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[2]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "func", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Func<,,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate"), global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "TSource"), global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Func<,,>), [new global::TUnit.Core.GenericParameter(2, true, "TAccumulate"), new global::TUnit.Core.GenericParameter(0, true, "TSource"), new global::TUnit.Core.GenericParameter(2, true, "TAccumulate")]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[3]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "comparer", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEqualityComparer<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.IEqualityComparer<>), [new global::TUnit.Core.GenericParameter(1, true, "TKey")]), IsNullable = true, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[4]! }, new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "expected", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.IEnumerable<>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateConstructedGeneric("System.Collections.Generic.KeyValuePair<,>, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateGenericParameter(1, true, "TKey"), global::TUnit.Core.TypeReference.CreateGenericParameter(2, true, "TAccumulate"))), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.IEnumerable<>), [new global::TUnit.Core.ConstructedGeneric(typeof(global::System.Collections.Generic.KeyValuePair<,>), [new global::TUnit.Core.GenericParameter(1, true, "TKey"), new global::TUnit.Core.GenericParameter(2, true, "TAccumulate")])]), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.GenericMethodTests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "AggregateBy_HasExpectedOutput" && m.GetParameters().Length == 6)?.GetParameters()[5]! } @@ -387,7 +387,7 @@ internal sealed class GenericMethodTests_AggregateBy_HasExpectedOutput_TestSourc var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.GenericMethodTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.GenericMethodTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.GenericMethodTests)), Name = "GenericMethodTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`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 c840cb1e57..e74f85cd61 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_EmptyGenericRegistry_WhenNoGenericsFound.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_EmptyGenericRegistry_WhenNoGenericsFound.verified.txt @@ -27,18 +27,18 @@ internal sealed class SimpleTestClass_NonGenericTest_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.SimpleTestClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.SimpleTestClass, GenericTypeResolverTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.SimpleTestClass)), Name = "NonGenericTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.SimpleTestClass", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.SimpleTestClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.SimpleTestClass, GenericTypeResolverTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.SimpleTestClass)), Name = "SimpleTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), 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 32ed9e2968..5f4b487e50 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericConstraints_WithInstantiation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericConstraints_WithInstantiation.verified.txt @@ -30,18 +30,18 @@ internal sealed class ConstrainedGenericTestClass_TestMethod_TestSource_GUID : g MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.ConstrainedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.ConstrainedGenericTestClass<>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.ConstrainedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "ConstrainedGenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), @@ -93,18 +93,18 @@ internal sealed class ConstrainedGenericTestClass_TestMethod_TestSource_GUID : g MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.ConstrainedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.ConstrainedGenericTestClass<>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.ConstrainedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "ConstrainedGenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), @@ -155,18 +155,18 @@ internal sealed class ConstrainedGenericTestClass_TestMethod_TestSource_GUID : g MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.ConstrainedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.ConstrainedGenericTestClass<>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.ConstrainedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.ConstrainedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "ConstrainedGenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), 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 14f283a284..0915b76c23 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestClass_WithExplicitInstantiation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestClass_WithExplicitInstantiation.verified.txt @@ -30,18 +30,18 @@ internal sealed class GenericTestClass_TestMethod_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.GenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.GenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.GenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.GenericTestClass<>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.GenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.GenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.GenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "GenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), @@ -93,18 +93,18 @@ internal sealed class GenericTestClass_TestMethod_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.GenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.GenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.GenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.GenericTestClass<>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.GenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.GenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.GenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "GenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), @@ -155,18 +155,18 @@ internal sealed class GenericTestClass_TestMethod_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.GenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.GenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.GenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.GenericTestClass<>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.GenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.GenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.GenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "GenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), 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 285817b109..365c22e4b6 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestMethod_WithExplicitInstantiation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_GenericTestMethod_WithExplicitInstantiation.verified.txt @@ -30,18 +30,18 @@ internal sealed class TestClass_GenericTestMethod_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TestClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TestClass, GenericTypeResolverTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TestClass)), Name = "GenericTestMethod", GenericTypeCount = 1, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.TestClass", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TestClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TestClass, GenericTypeResolverTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TestClass)), Name = "TestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), @@ -88,18 +88,18 @@ internal sealed class TestClass_GenericTestMethod_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TestClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TestClass, GenericTypeResolverTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TestClass)), Name = "GenericTestMethod", GenericTypeCount = 1, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.TestClass", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TestClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TestClass, GenericTypeResolverTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TestClass)), Name = "TestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), @@ -151,18 +151,18 @@ internal sealed class TestClass_GenericTestMethod_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TestClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TestClass, GenericTypeResolverTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TestClass)), Name = "GenericTestMethod", GenericTypeCount = 1, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.TestClass", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TestClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TestClass, GenericTypeResolverTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TestClass)), Name = "TestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), diff --git a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt index 091d51bc4f..30b0e79edd 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_MultipleGenericParameters.verified.txt @@ -30,18 +30,18 @@ internal sealed class MultiGenericTestClass_TestMethod_TestSource_GUID : global: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.MultiGenericTestClass<,>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T1"), global::TUnit.Core.TypeReference.CreateGenericParameter(1, false, "T2")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), [new global::TUnit.Core.GenericParameter(0, false, "T1"), new global::TUnit.Core.GenericParameter(1, false, "T2")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.MultiGenericTestClass<,>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.MultiGenericTestClass<,>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T1"), global::TUnit.Core.TypeReference.CreateGenericParameter(1, false, "T2")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), [new global::TUnit.Core.GenericParameter(0, false, "T1"), new global::TUnit.Core.GenericParameter(1, false, "T2")]), Name = "MultiGenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), @@ -93,18 +93,18 @@ internal sealed class MultiGenericTestClass_TestMethod_TestSource_GUID : global: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.MultiGenericTestClass<,>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T1"), global::TUnit.Core.TypeReference.CreateGenericParameter(1, false, "T2")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), [new global::TUnit.Core.GenericParameter(0, false, "T1"), new global::TUnit.Core.GenericParameter(1, false, "T2")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.MultiGenericTestClass<,>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.MultiGenericTestClass<,>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T1"), global::TUnit.Core.TypeReference.CreateGenericParameter(1, false, "T2")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), [new global::TUnit.Core.GenericParameter(0, false, "T1"), new global::TUnit.Core.GenericParameter(1, false, "T2")]), Name = "MultiGenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), @@ -155,18 +155,18 @@ internal sealed class MultiGenericTestClass_TestMethod_TestSource_GUID : global: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.MultiGenericTestClass<,>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T1"), global::TUnit.Core.TypeReference.CreateGenericParameter(1, false, "T2")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), [new global::TUnit.Core.GenericParameter(0, false, "T1"), new global::TUnit.Core.GenericParameter(1, false, "T2")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.MultiGenericTestClass<,>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.MultiGenericTestClass<,>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T1"), global::TUnit.Core.TypeReference.CreateGenericParameter(1, false, "T2")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.MultiGenericTestClass<,>), [new global::TUnit.Core.GenericParameter(0, false, "T1"), new global::TUnit.Core.GenericParameter(1, false, "T2")]), Name = "MultiGenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), diff --git a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt index 941e3de316..f56db59444 100644 --- a/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GenericTypeResolverTests.Test_NestedGenericTypes.verified.txt @@ -30,18 +30,18 @@ internal sealed class NestedGenericTestClass_TestMethod_TestSource_GUID : global MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NestedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.NestedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.NestedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.NestedGenericTestClass<>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NestedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.NestedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.NestedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "NestedGenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), @@ -93,18 +93,18 @@ internal sealed class NestedGenericTestClass_TestMethod_TestSource_GUID : global MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NestedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.NestedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.NestedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.NestedGenericTestClass<>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NestedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.NestedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.NestedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "NestedGenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), @@ -155,18 +155,18 @@ internal sealed class NestedGenericTestClass_TestMethod_TestSource_GUID : global MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NestedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.NestedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.NestedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "TestMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("GenericTypeResolverTests:global::TUnit.TestProject.NestedGenericTestClass<>", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NestedGenericTestClass<>), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.NestedGenericTestClass<>, GenericTypeResolverTests", global::TUnit.Core.TypeReference.CreateGenericParameter(0, false, "T")), + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.NestedGenericTestClass<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), Name = "NestedGenericTestClass", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("GenericTypeResolverTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "GenericTypeResolverTests" }), diff --git a/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt index eb67b6c9cf..5d6c311ada 100644 --- a/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GlobalStaticAfterEachTests.Test.verified.txt @@ -29,18 +29,18 @@ internal static class GlobalBase1_AfterEach1_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase1)), Name = "AfterEach1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.GlobalBase1", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase1)), Name = "GlobalBase1", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -104,18 +104,18 @@ internal static class GlobalBase2_AfterEach2_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase2)), Name = "AfterEach2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.GlobalBase2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase2)), Name = "GlobalBase2", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -179,18 +179,18 @@ internal static class GlobalBase3_AfterEach3_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase3)), Name = "AfterEach3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.GlobalBase3", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase3)), Name = "GlobalBase3", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -254,18 +254,18 @@ internal static class GlobalCleanUpTests_CleanUp_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "CleanUp", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AfterTests.GlobalCleanUpTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "GlobalCleanUpTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -329,17 +329,17 @@ internal static class GlobalCleanUpTests_CleanUp_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "CleanUp", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests).GetMethod("CleanUp", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] } @@ -349,7 +349,7 @@ internal static class GlobalCleanUpTests_CleanUp_After_Test_GUIDInitializer var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "GlobalCleanUpTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -413,17 +413,17 @@ internal static class GlobalCleanUpTests_CleanUpWithContext_After_Test_GUIDIniti MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "CleanUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "testContext", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests).GetMethod("CleanUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -433,7 +433,7 @@ internal static class GlobalCleanUpTests_CleanUpWithContext_After_Test_GUIDIniti var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "GlobalCleanUpTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -497,24 +497,24 @@ internal static class GlobalCleanUpTests_CleanUpWithContext_After_Test_GUIDIniti MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "CleanUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "testContext", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests).GetMethod("CleanUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests).GetMethod("CleanUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -524,7 +524,7 @@ internal static class GlobalCleanUpTests_CleanUpWithContext_After_Test_GUIDIniti var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "GlobalCleanUpTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -586,17 +586,17 @@ internal static class GlobalBase1_AfterAll1_AfterEvery_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase1)), Name = "AfterAll1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalBase1).GetMethod("AfterAll1", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -606,7 +606,7 @@ internal static class GlobalBase1_AfterAll1_AfterEvery_Test_GUIDInitializer var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase1)), Name = "GlobalBase1", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -669,17 +669,17 @@ internal static class GlobalBase2_AfterAll2_AfterEvery_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase2)), Name = "AfterAll2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalBase2).GetMethod("AfterAll2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -689,7 +689,7 @@ internal static class GlobalBase2_AfterAll2_AfterEvery_Test_GUIDInitializer var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase2)), Name = "GlobalBase2", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -752,17 +752,17 @@ internal static class GlobalBase3_AfterAll3_AfterEvery_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase3)), Name = "AfterAll3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalBase3).GetMethod("AfterAll3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -772,7 +772,7 @@ internal static class GlobalBase3_AfterAll3_AfterEvery_Test_GUIDInitializer var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalBase3)), Name = "GlobalBase3", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -835,17 +835,17 @@ internal static class GlobalCleanUpTests_AfterAllCleanUp_AfterEvery_Test_GUIDIni MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "AfterAllCleanUp", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests).GetMethod("AfterAllCleanUp", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -855,7 +855,7 @@ internal static class GlobalCleanUpTests_AfterAllCleanUp_AfterEvery_Test_GUIDIni var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "GlobalCleanUpTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -918,24 +918,24 @@ internal static class GlobalCleanUpTests_AfterAllCleanUp_AfterEvery_Test_GUIDIni MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "AfterAllCleanUp", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests).GetMethod("AfterAllCleanUp", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests).GetMethod("AfterAllCleanUp", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -945,7 +945,7 @@ internal static class GlobalCleanUpTests_AfterAllCleanUp_AfterEvery_Test_GUIDIni var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "GlobalCleanUpTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1008,17 +1008,17 @@ internal static class GlobalCleanUpTests_AfterAllCleanUpWithContext_AfterEvery_T MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "AfterAllCleanUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests).GetMethod("AfterAllCleanUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -1028,7 +1028,7 @@ internal static class GlobalCleanUpTests_AfterAllCleanUpWithContext_AfterEvery_T var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "GlobalCleanUpTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1091,24 +1091,24 @@ internal static class GlobalCleanUpTests_AfterAllCleanUpWithContext_AfterEvery_T MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "AfterAllCleanUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests).GetMethod("AfterAllCleanUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests).GetMethod("AfterAllCleanUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -1118,7 +1118,7 @@ internal static class GlobalCleanUpTests_AfterAllCleanUpWithContext_AfterEvery_T var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AfterTests.GlobalCleanUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AfterTests.GlobalCleanUpTests)), Name = "GlobalCleanUpTests", Namespace = "TUnit.TestProject.AfterTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt index b4f8390141..7def1f15cc 100644 --- a/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/GlobalStaticBeforeEachTests.Test.verified.txt @@ -29,18 +29,18 @@ internal static class GlobalBase1_BeforeEach1_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase1)), Name = "BeforeEach1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.GlobalBase1", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase1)), Name = "GlobalBase1", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -104,18 +104,18 @@ internal static class GlobalBase2_BeforeEach2_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase2)), Name = "BeforeEach2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.GlobalBase2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase2)), Name = "GlobalBase2", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -179,18 +179,18 @@ internal static class GlobalBase3_BeforeEach3_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase3)), Name = "BeforeEach3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.GlobalBase3", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase3)), Name = "GlobalBase3", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -254,18 +254,18 @@ internal static class GlobalSetUpTests_SetUp_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "SetUp", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.BeforeTests.GlobalSetUpTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "GlobalSetUpTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -329,17 +329,17 @@ internal static class GlobalSetUpTests_SetUp_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "SetUp", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests).GetMethod("SetUp", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] } @@ -349,7 +349,7 @@ internal static class GlobalSetUpTests_SetUp_Before_Test_GUIDInitializer var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "GlobalSetUpTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -413,17 +413,17 @@ internal static class GlobalSetUpTests_SetUpWithContext_Before_Test_GUIDInitiali MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "SetUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "testContext", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests).GetMethod("SetUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -433,7 +433,7 @@ internal static class GlobalSetUpTests_SetUpWithContext_Before_Test_GUIDInitiali var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "GlobalSetUpTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -497,24 +497,24 @@ internal static class GlobalSetUpTests_SetUpWithContext_Before_Test_GUIDInitiali MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "SetUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "testContext", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests).GetMethod("SetUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests).GetMethod("SetUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -524,7 +524,7 @@ internal static class GlobalSetUpTests_SetUpWithContext_Before_Test_GUIDInitiali var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "GlobalSetUpTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -586,17 +586,17 @@ internal static class GlobalBase1_BeforeAll1_BeforeEvery_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase1)), Name = "BeforeAll1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase1).GetMethod("BeforeAll1", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -606,7 +606,7 @@ internal static class GlobalBase1_BeforeAll1_BeforeEvery_Test_GUIDInitializer var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase1)), Name = "GlobalBase1", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -669,17 +669,17 @@ internal static class GlobalBase2_BeforeAll2_BeforeEvery_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase2)), Name = "BeforeAll2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase2).GetMethod("BeforeAll2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -689,7 +689,7 @@ internal static class GlobalBase2_BeforeAll2_BeforeEvery_Test_GUIDInitializer var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase2)), Name = "GlobalBase2", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -752,17 +752,17 @@ internal static class GlobalBase3_BeforeAll3_BeforeEvery_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase3)), Name = "BeforeAll3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase3).GetMethod("BeforeAll3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -772,7 +772,7 @@ internal static class GlobalBase3_BeforeAll3_BeforeEvery_Test_GUIDInitializer var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalBase3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalBase3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalBase3)), Name = "GlobalBase3", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -835,17 +835,17 @@ internal static class GlobalSetUpTests_BeforeAllSetUp_BeforeEvery_Test_GUIDIniti MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "BeforeAllSetUp", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests).GetMethod("BeforeAllSetUp", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -855,7 +855,7 @@ internal static class GlobalSetUpTests_BeforeAllSetUp_BeforeEvery_Test_GUIDIniti var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "GlobalSetUpTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -918,24 +918,24 @@ internal static class GlobalSetUpTests_BeforeAllSetUp_BeforeEvery_Test_GUIDIniti MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "BeforeAllSetUp", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests).GetMethod("BeforeAllSetUp", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests).GetMethod("BeforeAllSetUp", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -945,7 +945,7 @@ internal static class GlobalSetUpTests_BeforeAllSetUp_BeforeEvery_Test_GUIDIniti var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "GlobalSetUpTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1008,17 +1008,17 @@ internal static class GlobalSetUpTests_BeforeAllSetUpWithContext_BeforeEvery_Tes MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "BeforeAllSetUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests).GetMethod("BeforeAllSetUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext) }, null)!.GetParameters()[0] } @@ -1028,7 +1028,7 @@ internal static class GlobalSetUpTests_BeforeAllSetUpWithContext_BeforeEvery_Tes var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "GlobalSetUpTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1091,24 +1091,24 @@ internal static class GlobalSetUpTests_BeforeAllSetUpWithContext_BeforeEvery_Tes MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "BeforeAllSetUpWithContext", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.Core.TestContext)) { Name = "context", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.Core.TestContext, TUnit.Core"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.Core.TestContext)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests).GetMethod("BeforeAllSetUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests).GetMethod("BeforeAllSetUpWithContext", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static, null, new global::System.Type[] { typeof(global::TUnit.Core.TestContext), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -1118,7 +1118,7 @@ internal static class GlobalSetUpTests_BeforeAllSetUpWithContext_BeforeEvery_Tes var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.BeforeTests.GlobalSetUpTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.BeforeTests.GlobalSetUpTests)), Name = "GlobalSetUpTests", Namespace = "TUnit.TestProject.BeforeTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt index 7ea8f73b7f..b34b16e7dd 100644 --- a/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Hooks1589.Test.verified.txt @@ -34,18 +34,18 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1589.MyTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1589.MyTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1589.MyTests)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._1589.MyTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1589.MyTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1589.MyTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1589.MyTests)), Name = "MyTests", Namespace = "TUnit.TestProject.Bugs._1589", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -54,7 +54,7 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.Bugs._1589.MyFixture)) { Name = "myFixture", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1589.MyFixture, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1589.MyFixture)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1589.MyTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.Bugs._1589.MyFixture) })!.GetParameters()[0] } diff --git a/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt index 4c18a7f1ed..b8277907aa 100644 --- a/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Hooks1594.Test.verified.txt @@ -34,18 +34,18 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1594.MyTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1594.MyTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1594.MyTests)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._1594.MyTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1594.MyTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1594.MyTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1594.MyTests)), Name = "MyTests", Namespace = "TUnit.TestProject.Bugs._1594", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -54,7 +54,7 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.Bugs._1594.MyFixture)) { Name = "myFixture", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1594.MyFixture, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1594.MyFixture)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1594.MyTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.Bugs._1594.MyFixture) })!.GetParameters()[0] } diff --git a/TUnit.Core.SourceGenerator.Tests/HooksTests.DisposableFieldTests.verified.txt b/TUnit.Core.SourceGenerator.Tests/HooksTests.DisposableFieldTests.verified.txt index e920c70d68..924876fdcb 100644 --- a/TUnit.Core.SourceGenerator.Tests/HooksTests.DisposableFieldTests.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/HooksTests.DisposableFieldTests.verified.txt @@ -29,18 +29,18 @@ internal static class DisposableFieldTests_Setup_Before_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DisposableFieldTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DisposableFieldTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DisposableFieldTests)), Name = "Setup", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.DisposableFieldTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DisposableFieldTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DisposableFieldTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DisposableFieldTests)), Name = "DisposableFieldTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -104,18 +104,18 @@ internal static class DisposableFieldTests_Blah_After_Test_GUIDInitializer MethodInfo = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.DisposableFieldTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DisposableFieldTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DisposableFieldTests)), Name = "Blah", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.DisposableFieldTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.DisposableFieldTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.DisposableFieldTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.DisposableFieldTests)), Name = "DisposableFieldTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt index 5cb6cfe3ce..033da0ac0c 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritedPropertySetterTests.Test.verified.txt @@ -193,18 +193,18 @@ internal sealed class PropertySetterTests_Test_TestSource_GUID : global::TUnit.C MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.PropertySetterTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PropertySetterTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PropertySetterTests)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.PropertySetterTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.PropertySetterTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PropertySetterTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PropertySetterTests)), Name = "PropertySetterTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -527,18 +527,18 @@ internal sealed class InheritedPropertySetterTests_Test_TestSource_GUID : global MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.PropertySetterTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PropertySetterTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PropertySetterTests)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedPropertySetterTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedPropertySetterTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedPropertySetterTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedPropertySetterTests)), Name = "InheritedPropertySetterTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt index 4b74485855..f021cd4bae 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritedTestsFromDifferentProjectTests.Test.verified.txt @@ -30,18 +30,18 @@ internal sealed class InheritedTestsFromDifferentProjectTests_Test_TestSource_GU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "InheritedTestsFromDifferentProjectTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -116,17 +116,17 @@ internal sealed class InheritedTestsFromDifferentProjectTests_GenericMethodDataS MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "GenericMethodDataSource", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests).GetMethod("GenericMethodDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -136,7 +136,7 @@ internal sealed class InheritedTestsFromDifferentProjectTests_GenericMethodDataS var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "InheritedTestsFromDifferentProjectTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -229,17 +229,17 @@ internal sealed class InheritedTestsFromDifferentProjectTests_NonGenericMethodDa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "NonGenericMethodDataSource", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests).GetMethod("NonGenericMethodDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -249,7 +249,7 @@ internal sealed class InheritedTestsFromDifferentProjectTests_NonGenericMethodDa var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "InheritedTestsFromDifferentProjectTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -328,18 +328,18 @@ internal sealed class InheritedTestsFromDifferentProjectTests_VerifyInheritedCat MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "VerifyInheritedCategoriesAreAvailable", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "InheritedTestsFromDifferentProjectTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -411,18 +411,18 @@ internal sealed class InheritedTestsFromDifferentProjectTests_BaseTest_TestSourc MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.BaseTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Library.BaseTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.BaseTests)), Name = "BaseTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "InheritedTestsFromDifferentProjectTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -496,18 +496,18 @@ internal sealed class InheritedTestsFromDifferentProjectTests_BaseTestWithMultip MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.BaseTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Library.BaseTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.BaseTests)), Name = "BaseTestWithMultipleCategories", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "InheritedTestsFromDifferentProjectTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -579,18 +579,18 @@ internal sealed class InheritedTestsFromDifferentProjectTests_Test_TestSource_GU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "InheritedTestsFromDifferentProjectTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -665,17 +665,17 @@ internal sealed class InheritedTestsFromDifferentProjectTests_GenericMethodDataS MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "GenericMethodDataSource", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests).GetMethod("GenericMethodDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -685,7 +685,7 @@ internal sealed class InheritedTestsFromDifferentProjectTests_GenericMethodDataS var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "InheritedTestsFromDifferentProjectTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -778,17 +778,17 @@ internal sealed class InheritedTestsFromDifferentProjectTests_NonGenericMethodDa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "NonGenericMethodDataSource", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests).GetMethod("NonGenericMethodDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -798,7 +798,7 @@ internal sealed class InheritedTestsFromDifferentProjectTests_NonGenericMethodDa var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "InheritedTestsFromDifferentProjectTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -877,18 +877,18 @@ internal sealed class InheritedTestsFromDifferentProjectTests_VerifyInheritedCat MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "VerifyInheritedCategoriesAreAvailable", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.InheritedTestsFromDifferentProjectTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.InheritedTestsFromDifferentProjectTests)), Name = "InheritedTestsFromDifferentProjectTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt index 1da5f79842..d707fe70a3 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritsTestsAbstractTests.Test.verified.txt @@ -29,18 +29,18 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "SecondTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "ConcreteClass2", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -111,18 +111,18 @@ internal sealed class ConcreteClass2_AssertClassName_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.AbstractBaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass)), Name = "AssertClassName", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "ConcreteClass2", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -192,18 +192,18 @@ internal sealed class ConcreteClass2_SecondTest_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "SecondTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass2", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2)), Name = "ConcreteClass2", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -273,18 +273,18 @@ internal sealed class ConcreteClass1_AssertClassName_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.AbstractBaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.AbstractBaseClass)), Name = "AssertClassName", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.AbstractTests.ConcreteClass1", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AbstractTests.ConcreteClass1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass1)), Name = "ConcreteClass1", Namespace = "TUnit.TestProject.AbstractTests", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt index 0a21ea45d1..9e57eb102c 100644 --- a/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/InheritsTestsTests.Test.verified.txt @@ -64,17 +64,17 @@ internal sealed class BaseClass_Test_TestSource_GUID : global::TUnit.Core.Interf MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1924.None.BaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass).GetMethod("Test", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -84,7 +84,7 @@ internal sealed class BaseClass_Test_TestSource_GUID : global::TUnit.Core.Interf var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1924.None.BaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass)), Name = "BaseClass", Namespace = "TUnit.TestProject.Bugs._1924.None", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -213,17 +213,17 @@ internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1924.None.BaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass).GetMethod("Test", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -233,7 +233,7 @@ internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1924.None.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1924.None.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1924.None.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1924.None", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -349,17 +349,17 @@ internal sealed class Tests2_Test_TestSource_GUID : global::TUnit.Core.Interface MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1924.None.BaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass).GetMethod("Test", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -369,7 +369,7 @@ internal sealed class Tests2_Test_TestSource_GUID : global::TUnit.Core.Interface var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1924.None.Tests2), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1924.None.Tests2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1924.None.Tests2)), Name = "Tests2", Namespace = "TUnit.TestProject.Bugs._1924.None", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -485,17 +485,17 @@ internal sealed class Tests3_Test_TestSource_GUID : global::TUnit.Core.Interface MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1924.None.BaseClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1924.None.BaseClass).GetMethod("Test", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -505,7 +505,7 @@ internal sealed class Tests3_Test_TestSource_GUID : global::TUnit.Core.Interface var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1924.None.Tests3), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1924.None.Tests3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1924.None.Tests3)), Name = "Tests3", Namespace = "TUnit.TestProject.Bugs._1924.None", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt index ec57a335b7..bea8884396 100644 --- a/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Issue2887Tests.Test.verified.txt @@ -28,18 +28,18 @@ internal sealed class ActualTestClass_Test1_TestSource_GUID : global::TUnit.Core MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._Issue2887.ActualTestClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._Issue2887.ActualTestClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._Issue2887.ActualTestClass)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._Issue2887.ActualTestClass", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._Issue2887.ActualTestClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._Issue2887.ActualTestClass, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._Issue2887.ActualTestClass)), Name = "ActualTestClass", Namespace = "TUnit.TestProject.Bugs._Issue2887", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -48,7 +48,7 @@ internal sealed class ActualTestClass_Test1_TestSource_GUID : global::TUnit.Core new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.Bugs._Issue2887.IServiceProvider)) { Name = "serviceProvider", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._Issue2887.IServiceProvider, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._Issue2887.IServiceProvider)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._Issue2887.ActualTestClass).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.Bugs._Issue2887.IServiceProvider) })!.GetParameters()[0] } diff --git a/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt index a064107592..7e4abeda84 100644 --- a/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MatrixTests.Test.verified.txt @@ -31,31 +31,31 @@ internal sealed class MatrixTests_MatrixTest_One_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTest_One", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "str", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("MatrixTest_One", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(int), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "i", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("MatrixTest_One", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(int), typeof(bool) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "boolean", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("MatrixTest_One", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(int), typeof(bool) }, null)!.GetParameters()[2] } @@ -65,7 +65,7 @@ internal sealed class MatrixTests_MatrixTest_One_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -144,38 +144,38 @@ internal sealed class MatrixTests_MatrixTest_Two_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTest_Two", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "i", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("MatrixTest_Two", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(int), typeof(int), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "i2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("MatrixTest_Two", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(int), typeof(int), typeof(bool) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "i3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("MatrixTest_Two", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(int), typeof(int), typeof(bool) }, null)!.GetParameters()[2] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "boolean", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("MatrixTest_Two", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(int), typeof(int), typeof(bool) }, null)!.GetParameters()[3] } @@ -185,7 +185,7 @@ internal sealed class MatrixTests_MatrixTest_Two_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -264,31 +264,31 @@ internal sealed class MatrixTests_MatrixTest_Enum_TestSource_GUID : global::TUni MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTest_Enum", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "i", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("MatrixTest_Enum", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::TUnit.TestProject.TestEnum), typeof(global::TUnit.TestProject.TestEnum?) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.TestEnum)) { Name = "testEnum", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TestEnum, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TestEnum)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("MatrixTest_Enum", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::TUnit.TestProject.TestEnum), typeof(global::TUnit.TestProject.TestEnum?) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.TestEnum?)) { Name = "testEnum2", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("T?, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TestEnum, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TestEnum?)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("MatrixTest_Enum", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::TUnit.TestProject.TestEnum), typeof(global::TUnit.TestProject.TestEnum?) }, null)!.GetParameters()[2] } @@ -298,7 +298,7 @@ internal sealed class MatrixTests_MatrixTest_Enum_TestSource_GUID : global::TUni var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -377,24 +377,24 @@ internal sealed class MatrixTests_AutoGenerateBools_TestSource_GUID : global::TU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "AutoGenerateBools", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "str", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("AutoGenerateBools", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "boolean", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("AutoGenerateBools", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(bool) }, null)!.GetParameters()[1] } @@ -404,7 +404,7 @@ internal sealed class MatrixTests_AutoGenerateBools_TestSource_GUID : global::TU var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -483,24 +483,24 @@ internal sealed class MatrixTests_AutoGenerateBools2_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "AutoGenerateBools2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "str", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("AutoGenerateBools2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(bool?) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(bool?)) { Name = "boolean", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("T?, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool?)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("AutoGenerateBools2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(bool?) }, null)!.GetParameters()[1] } @@ -510,7 +510,7 @@ internal sealed class MatrixTests_AutoGenerateBools2_TestSource_GUID : global::T var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -589,24 +589,24 @@ internal sealed class MatrixTests_ImplicitConversion_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "ImplicitConversion", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(OneOf)) { Name = "enum", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("OneOf<, >, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TestEnum, TestsBase`1"), global::TUnit.Core.TypeReference.CreateConcrete("TestEnum2, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(OneOf)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("ImplicitConversion", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(OneOf), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "boolean", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("ImplicitConversion", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(OneOf), typeof(bool) }, null)!.GetParameters()[1] } @@ -616,7 +616,7 @@ internal sealed class MatrixTests_ImplicitConversion_TestSource_GUID : global::T var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -695,24 +695,24 @@ internal sealed class MatrixTests_ExcludingAutoGeneratedMatrixValues_TestSource_ MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "ExcludingAutoGeneratedMatrixValues", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MatrixTests.CountToTenEnum)) { Name = "enum", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests.CountToTenEnum, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests.CountToTenEnum)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("ExcludingAutoGeneratedMatrixValues", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.TestProject.MatrixTests.CountToTenEnum), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "boolean", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("ExcludingAutoGeneratedMatrixValues", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.TestProject.MatrixTests.CountToTenEnum), typeof(bool) }, null)!.GetParameters()[1] } @@ -722,7 +722,7 @@ internal sealed class MatrixTests_ExcludingAutoGeneratedMatrixValues_TestSource_ var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -801,17 +801,17 @@ internal sealed class MatrixTests_Method1_TestSource_GUID : global::TUnit.Core.I MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "Method1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "item", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("Method1", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -821,7 +821,7 @@ internal sealed class MatrixTests_Method1_TestSource_GUID : global::TUnit.Core.I var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -900,17 +900,17 @@ internal sealed class MatrixTests_Method2_TestSource_GUID : global::TUnit.Core.I MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "Method2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "item", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("Method2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -920,7 +920,7 @@ internal sealed class MatrixTests_Method2_TestSource_GUID : global::TUnit.Core.I var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -999,17 +999,17 @@ internal sealed class MatrixTests_Method3_TestSource_GUID : global::TUnit.Core.I MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "Method3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "item", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("Method3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -1019,7 +1019,7 @@ internal sealed class MatrixTests_Method3_TestSource_GUID : global::TUnit.Core.I var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1098,17 +1098,17 @@ internal sealed class MatrixTests_Method4_TestSource_GUID : global::TUnit.Core.I MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "Method4", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "item", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("Method4", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -1118,7 +1118,7 @@ internal sealed class MatrixTests_Method4_TestSource_GUID : global::TUnit.Core.I var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1200,24 +1200,24 @@ internal sealed class MatrixTests_Exclusion_TestSource_GUID : global::TUnit.Core MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "Exclusion", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "item", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("Exclusion", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(int) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "item2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MatrixTests).GetMethod("Exclusion", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(int) }, null)!.GetParameters()[1] } @@ -1227,7 +1227,7 @@ internal sealed class MatrixTests_Exclusion_TestSource_GUID : global::TUnit.Core var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MatrixTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MatrixTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MatrixTests)), Name = "MatrixTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt index aa7de54224..aa3e1fa104 100644 --- a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenTests.Test.verified.txt @@ -42,17 +42,17 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method_TestSource_G MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "DataSource_Method", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests).GetMethod("DataSource_Method", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -62,7 +62,7 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method_TestSource_G var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "MethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -153,17 +153,17 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method2_TestSource_ MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "DataSource_Method2", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests).GetMethod("DataSource_Method2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -173,7 +173,7 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method2_TestSource_ var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "MethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -264,17 +264,17 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method_WithAction_T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "DataSource_Method_WithAction", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::System.Action)) { Name = "action", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void System.Action(), System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Action)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests).GetMethod("DataSource_Method_WithAction", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::System.Action) }, null)!.GetParameters()[0] } @@ -284,7 +284,7 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method_WithAction_T var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "MethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -390,17 +390,17 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method3_TestSource_ MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "DataSource_Method3", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests).GetMethod("DataSource_Method3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -410,7 +410,7 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method3_TestSource_ var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "MethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -543,17 +543,17 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method4_TestSource_ MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "DataSource_Method4", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests).GetMethod("DataSource_Method4", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -563,7 +563,7 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_Method4_TestSource_ var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "MethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -654,17 +654,17 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_WithBaseReturn_Test MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "DataSource_WithBaseReturn", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests.BaseValue)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests.BaseValue, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests.BaseValue)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests).GetMethod("DataSource_WithBaseReturn", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests.BaseValue) }, null)!.GetParameters()[0] } @@ -674,7 +674,7 @@ internal sealed class MethodDataSourceDrivenTests_DataSource_WithBaseReturn_Test var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "MethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -775,17 +775,17 @@ internal sealed class MethodDataSourceDrivenTests_EnumerableFuncArrayTest_TestSo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "EnumerableFuncArrayTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string[])) { Name = "strings", - TypeReference = global::TUnit.Core.TypeReference.CreateArray(global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), 1), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string[])), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests).GetMethod("EnumerableFuncArrayTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string[]) }, null)!.GetParameters()[0] } @@ -795,7 +795,7 @@ internal sealed class MethodDataSourceDrivenTests_EnumerableFuncArrayTest_TestSo var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenTests)), Name = "MethodDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt index cdb3bc25bd..5f0f43db42 100644 --- a/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MethodDataSourceDrivenWithCancellationTokenTests.Test.verified.txt @@ -143,24 +143,24 @@ internal sealed class MethodDataSourceDrivenWithCancellationTokenTests_MyTest_Te MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests)), Name = "MyTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests).GetMethod("MyTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests).GetMethod("MyTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -170,7 +170,7 @@ internal sealed class MethodDataSourceDrivenWithCancellationTokenTests_MyTest_Te var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MethodDataSourceDrivenWithCancellationTokenTests)), Name = "MethodDataSourceDrivenWithCancellationTokenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt index 6f7dda8988..d2eb0561e2 100644 --- a/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/MultipleClassDataSourceDrivenTests.Test.verified.txt @@ -34,18 +34,18 @@ internal sealed class MultipleClassDataSourceDrivenTests_Test1_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.MultipleClassDataSourceDrivenTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests)), Name = "MultipleClassDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -54,35 +54,35 @@ internal sealed class MultipleClassDataSourceDrivenTests_Test1_TestSource_GUID : new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1)) { Name = "inject1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5) })!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2)) { Name = "inject2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5) })!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3)) { Name = "inject3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5) })!.GetParameters()[2] }, new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4)) { Name = "inject4", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5) })!.GetParameters()[3] }, new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5)) { Name = "inject5", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5) })!.GetParameters()[4] } @@ -161,18 +161,18 @@ internal sealed class MultipleClassDataSourceDrivenTests_Test2_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.MultipleClassDataSourceDrivenTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests)), Name = "MultipleClassDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -181,35 +181,35 @@ internal sealed class MultipleClassDataSourceDrivenTests_Test2_TestSource_GUID : new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1)) { Name = "inject1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5) })!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2)) { Name = "inject2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5) })!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3)) { Name = "inject3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5) })!.GetParameters()[2] }, new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4)) { Name = "inject4", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5) })!.GetParameters()[3] }, new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5)) { Name = "inject5", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject1), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject2), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject3), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject4), typeof(global::TUnit.TestProject.MultipleClassDataSourceDrivenTests.Inject5) })!.GetParameters()[4] } diff --git a/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt index 8fdc13c02e..e4b1367b6d 100644 --- a/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NameOfArgumentTests.Test.verified.txt @@ -31,17 +31,17 @@ internal sealed class NameOfArgumentTests_TestName_TestSource_GUID : global::TUn MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NameOfArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NameOfArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NameOfArgumentTests)), Name = "TestName", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "name", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NameOfArgumentTests).GetMethod("TestName", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -51,7 +51,7 @@ internal sealed class NameOfArgumentTests_TestName_TestSource_GUID : global::TUn var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NameOfArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NameOfArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NameOfArgumentTests)), Name = "NameOfArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt index 3d8b6fc137..44d25286a6 100644 --- a/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NullableByteArgumentTests.Test.verified.txt @@ -32,17 +32,17 @@ internal sealed class NullableByteArgumentTests_Test_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NullableByteArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NullableByteArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NullableByteArgumentTests)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(byte?)) { Name = "someByte", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("T?, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateConcrete("byte, System.Private.CoreLib")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(byte?)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.NullableByteArgumentTests).GetMethod("Test", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(byte?) }, null)!.GetParameters()[0] } @@ -52,7 +52,7 @@ internal sealed class NullableByteArgumentTests_Test_TestSource_GUID : global::T var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NullableByteArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NullableByteArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NullableByteArgumentTests)), Name = "NullableByteArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -133,24 +133,24 @@ internal sealed class NullableByteArgumentTests_Test2_TestSource_GUID : global:: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NullableByteArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NullableByteArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NullableByteArgumentTests)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(byte)) { Name = "byte1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("byte, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(byte)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NullableByteArgumentTests).GetMethod("Test2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(byte), typeof(byte?) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(byte?)) { Name = "byte2", - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("T?, System.Private.CoreLib", global::TUnit.Core.TypeReference.CreateConcrete("byte, System.Private.CoreLib")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(byte?)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.NullableByteArgumentTests).GetMethod("Test2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(byte), typeof(byte?) }, null)!.GetParameters()[1] } @@ -160,7 +160,7 @@ internal sealed class NullableByteArgumentTests_Test2_TestSource_GUID : global:: var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NullableByteArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NullableByteArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NullableByteArgumentTests)), Name = "NullableByteArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt index 7815d0a5a6..34e62a467e 100644 --- a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.Test.verified.txt @@ -31,17 +31,17 @@ internal sealed class NumberArgumentTests_Int_TestSource_GUID : global::TUnit.Co MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "Int", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "i", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("Int", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -51,7 +51,7 @@ internal sealed class NumberArgumentTests_Int_TestSource_GUID : global::TUnit.Co var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -131,17 +131,17 @@ internal sealed class NumberArgumentTests_Double_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "Double", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(double)) { Name = "d", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("double, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(double)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("Double", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(double) }, null)!.GetParameters()[0] } @@ -151,7 +151,7 @@ internal sealed class NumberArgumentTests_Double_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -231,17 +231,17 @@ internal sealed class NumberArgumentTests_Float_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "Float", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(float)) { Name = "f", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("float, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(float)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("Float", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(float) }, null)!.GetParameters()[0] } @@ -251,7 +251,7 @@ internal sealed class NumberArgumentTests_Float_TestSource_GUID : global::TUnit. var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -331,17 +331,17 @@ internal sealed class NumberArgumentTests_Long_TestSource_GUID : global::TUnit.C MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "Long", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(long)) { Name = "l", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("long, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(long)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("Long", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(long) }, null)!.GetParameters()[0] } @@ -351,7 +351,7 @@ internal sealed class NumberArgumentTests_Long_TestSource_GUID : global::TUnit.C var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -431,17 +431,17 @@ internal sealed class NumberArgumentTests_ULong_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "ULong", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(ulong)) { Name = "l", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("ulong, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(ulong)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("ULong", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(ulong) }, null)!.GetParameters()[0] } @@ -451,7 +451,7 @@ internal sealed class NumberArgumentTests_ULong_TestSource_GUID : global::TUnit. var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -531,17 +531,17 @@ internal sealed class NumberArgumentTests_UInt_TestSource_GUID : global::TUnit.C MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "UInt", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(uint)) { Name = "i", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("uint, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(uint)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("UInt", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(uint) }, null)!.GetParameters()[0] } @@ -551,7 +551,7 @@ internal sealed class NumberArgumentTests_UInt_TestSource_GUID : global::TUnit.C var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt index 7815d0a5a6..34e62a467e 100644 --- a/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/NumberArgumentTests.TestDE.verified.txt @@ -31,17 +31,17 @@ internal sealed class NumberArgumentTests_Int_TestSource_GUID : global::TUnit.Co MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "Int", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "i", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("Int", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int) }, null)!.GetParameters()[0] } @@ -51,7 +51,7 @@ internal sealed class NumberArgumentTests_Int_TestSource_GUID : global::TUnit.Co var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -131,17 +131,17 @@ internal sealed class NumberArgumentTests_Double_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "Double", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(double)) { Name = "d", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("double, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(double)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("Double", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(double) }, null)!.GetParameters()[0] } @@ -151,7 +151,7 @@ internal sealed class NumberArgumentTests_Double_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -231,17 +231,17 @@ internal sealed class NumberArgumentTests_Float_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "Float", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(float)) { Name = "f", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("float, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(float)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("Float", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(float) }, null)!.GetParameters()[0] } @@ -251,7 +251,7 @@ internal sealed class NumberArgumentTests_Float_TestSource_GUID : global::TUnit. var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -331,17 +331,17 @@ internal sealed class NumberArgumentTests_Long_TestSource_GUID : global::TUnit.C MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "Long", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(long)) { Name = "l", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("long, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(long)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("Long", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(long) }, null)!.GetParameters()[0] } @@ -351,7 +351,7 @@ internal sealed class NumberArgumentTests_Long_TestSource_GUID : global::TUnit.C var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -431,17 +431,17 @@ internal sealed class NumberArgumentTests_ULong_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "ULong", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(ulong)) { Name = "l", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("ulong, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(ulong)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("ULong", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(ulong) }, null)!.GetParameters()[0] } @@ -451,7 +451,7 @@ internal sealed class NumberArgumentTests_ULong_TestSource_GUID : global::TUnit. var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -531,17 +531,17 @@ internal sealed class NumberArgumentTests_UInt_TestSource_GUID : global::TUnit.C MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "UInt", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(uint)) { Name = "i", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("uint, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(uint)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.NumberArgumentTests).GetMethod("UInt", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(uint) }, null)!.GetParameters()[0] } @@ -551,7 +551,7 @@ internal sealed class NumberArgumentTests_UInt_TestSource_GUID : global::TUnit.C var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.NumberArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.NumberArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.NumberArgumentTests)), Name = "NumberArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt index f777852322..e898fd0735 100644 --- a/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/PriorityFilteringTests.Test.verified.txt @@ -28,18 +28,18 @@ internal sealed class PriorityFilteringTests_High_1_TestSource_GUID : global::TU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "High_1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.PriorityFilteringTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "PriorityFilteringTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -108,18 +108,18 @@ internal sealed class PriorityFilteringTests_High_2_TestSource_GUID : global::TU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "High_2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.PriorityFilteringTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "PriorityFilteringTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -188,18 +188,18 @@ internal sealed class PriorityFilteringTests_High_3_TestSource_GUID : global::TU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "High_3", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.PriorityFilteringTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "PriorityFilteringTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -268,18 +268,18 @@ internal sealed class PriorityFilteringTests_Medium_1_TestSource_GUID : global:: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "Medium_1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.PriorityFilteringTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "PriorityFilteringTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -348,18 +348,18 @@ internal sealed class PriorityFilteringTests_Medium_2_TestSource_GUID : global:: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "Medium_2", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.PriorityFilteringTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "PriorityFilteringTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -428,18 +428,18 @@ internal sealed class PriorityFilteringTests_Low_1_TestSource_GUID : global::TUn MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "Low_1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.PriorityFilteringTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.PriorityFilteringTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PriorityFilteringTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PriorityFilteringTests)), Name = "PriorityFilteringTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt index 212372cf2e..393b67c291 100644 --- a/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/PropertySetterTests.Test.verified.txt @@ -193,18 +193,18 @@ internal sealed class PropertySetterTests_Test_TestSource_GUID : global::TUnit.C MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.PropertySetterTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PropertySetterTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PropertySetterTests)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.PropertySetterTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.PropertySetterTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.PropertySetterTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.PropertySetterTests)), Name = "PropertySetterTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt index fa4337ba96..93bb58d725 100644 --- a/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/RepeatTests.Test.verified.txt @@ -30,18 +30,18 @@ internal sealed class RepeatTests_One_TestSource_GUID : global::TUnit.Core.Inter MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.RepeatTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.RepeatTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.RepeatTests)), Name = "One", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.RepeatTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.RepeatTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.RepeatTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.RepeatTests)), Name = "RepeatTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -113,18 +113,18 @@ internal sealed class RepeatTests_Two_TestSource_GUID : global::TUnit.Core.Inter MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.RepeatTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.RepeatTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.RepeatTests)), Name = "Two", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.RepeatTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.RepeatTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.RepeatTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.RepeatTests)), Name = "RepeatTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -195,18 +195,18 @@ internal sealed class RepeatTests_Three_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.RepeatTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.RepeatTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.RepeatTests)), Name = "Three", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.RepeatTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.RepeatTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.RepeatTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.RepeatTests)), Name = "RepeatTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 e7de14ae1d..94f9d7a233 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet10_0.verified.txt @@ -32,18 +32,18 @@ internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Co MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "With_STA", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -115,18 +115,18 @@ internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "Without_STA", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -199,18 +199,18 @@ internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : globa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithSimpleAwait", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -283,18 +283,18 @@ internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskYield", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -367,18 +367,18 @@ internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithConfigureAwaitTrue", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -451,18 +451,18 @@ internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithNestedAsyncCalls", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -535,18 +535,18 @@ internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : gl MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskFromResult", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -619,18 +619,18 @@ internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithCompletedTask", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -703,18 +703,18 @@ internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskRun", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -787,18 +787,18 @@ internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : gl MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithMultipleAwaits", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -871,18 +871,18 @@ internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : g MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithAsyncEnumerable", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -955,18 +955,18 @@ internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : globa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskWhenAll", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1039,18 +1039,18 @@ internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithExceptionHandling", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 e7de14ae1d..94f9d7a233 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet8_0.verified.txt @@ -32,18 +32,18 @@ internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Co MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "With_STA", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -115,18 +115,18 @@ internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "Without_STA", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -199,18 +199,18 @@ internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : globa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithSimpleAwait", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -283,18 +283,18 @@ internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskYield", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -367,18 +367,18 @@ internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithConfigureAwaitTrue", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -451,18 +451,18 @@ internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithNestedAsyncCalls", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -535,18 +535,18 @@ internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : gl MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskFromResult", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -619,18 +619,18 @@ internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithCompletedTask", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -703,18 +703,18 @@ internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskRun", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -787,18 +787,18 @@ internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : gl MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithMultipleAwaits", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -871,18 +871,18 @@ internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : g MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithAsyncEnumerable", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -955,18 +955,18 @@ internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : globa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskWhenAll", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1039,18 +1039,18 @@ internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithExceptionHandling", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 e7de14ae1d..94f9d7a233 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.DotNet9_0.verified.txt @@ -32,18 +32,18 @@ internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Co MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "With_STA", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -115,18 +115,18 @@ internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "Without_STA", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -199,18 +199,18 @@ internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : globa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithSimpleAwait", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -283,18 +283,18 @@ internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskYield", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -367,18 +367,18 @@ internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithConfigureAwaitTrue", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -451,18 +451,18 @@ internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithNestedAsyncCalls", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -535,18 +535,18 @@ internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : gl MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskFromResult", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -619,18 +619,18 @@ internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithCompletedTask", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -703,18 +703,18 @@ internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskRun", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -787,18 +787,18 @@ internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : gl MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithMultipleAwaits", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -871,18 +871,18 @@ internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : g MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithAsyncEnumerable", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -955,18 +955,18 @@ internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : globa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskWhenAll", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1039,18 +1039,18 @@ internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithExceptionHandling", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 daac7fea9d..c2cd3f5248 100644 --- a/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/STAThreadTests.Test.Net4_7.verified.txt @@ -32,18 +32,18 @@ internal sealed class STAThreadTests_With_STA_TestSource_GUID : global::TUnit.Co MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "With_STA", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -115,18 +115,18 @@ internal sealed class STAThreadTests_Without_STA_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "Without_STA", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -199,18 +199,18 @@ internal sealed class STAThreadTests_STA_WithSimpleAwait_TestSource_GUID : globa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithSimpleAwait", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -283,18 +283,18 @@ internal sealed class STAThreadTests_STA_WithTaskYield_TestSource_GUID : global: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskYield", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -367,18 +367,18 @@ internal sealed class STAThreadTests_STA_WithConfigureAwaitTrue_TestSource_GUID MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithConfigureAwaitTrue", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -451,18 +451,18 @@ internal sealed class STAThreadTests_STA_WithNestedAsyncCalls_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithNestedAsyncCalls", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -535,18 +535,18 @@ internal sealed class STAThreadTests_STA_WithTaskFromResult_TestSource_GUID : gl MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskFromResult", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -619,18 +619,18 @@ internal sealed class STAThreadTests_STA_WithCompletedTask_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithCompletedTask", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -703,18 +703,18 @@ internal sealed class STAThreadTests_STA_WithTaskRun_TestSource_GUID : global::T MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskRun", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -787,18 +787,18 @@ internal sealed class STAThreadTests_STA_WithMultipleAwaits_TestSource_GUID : gl MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithMultipleAwaits", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -871,18 +871,18 @@ internal sealed class STAThreadTests_STA_WithAsyncEnumerable_TestSource_GUID : g MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithAsyncEnumerable", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -955,18 +955,18 @@ internal sealed class STAThreadTests_STA_WithTaskWhenAll_TestSource_GUID : globa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithTaskWhenAll", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -1039,18 +1039,18 @@ internal sealed class STAThreadTests_STA_WithExceptionHandling_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STA_WithExceptionHandling", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.STAThreadTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.STAThreadTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.STAThreadTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.STAThreadTests)), Name = "STAThreadTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt index dfa532ae18..c39f35df2c 100644 --- a/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/StringArgumentTests.Test.verified.txt @@ -42,17 +42,17 @@ internal sealed class StringArgumentTests_Normal_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.StringArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.StringArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.StringArgumentTests)), Name = "Normal", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "s", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.StringArgumentTests).GetMethod("Normal", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -62,7 +62,7 @@ internal sealed class StringArgumentTests_Normal_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.StringArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.StringArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.StringArgumentTests)), Name = "StringArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -149,17 +149,17 @@ internal sealed class StringArgumentTests_Nullable_TestSource_GUID : global::TUn MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.StringArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.StringArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.StringArgumentTests)), Name = "Nullable", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "s", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.StringArgumentTests).GetMethod("Nullable", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -169,7 +169,7 @@ internal sealed class StringArgumentTests_Nullable_TestSource_GUID : global::TUn var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.StringArgumentTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.StringArgumentTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.StringArgumentTests)), Name = "StringArgumentTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt index 6f2c6714f4..8b334711db 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests.Test.verified.txt @@ -35,24 +35,24 @@ internal sealed class Tests_TryParse_InvalidString_ReturnsFailure_TestSource_GUI MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1304.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1304.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1304.Tests)), Name = "TryParse_InvalidString_ReturnsFailure", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "input", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1304.Tests).GetMethod("TryParse_InvalidString_ReturnsFailure", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1304.Tests).GetMethod("TryParse_InvalidString_ReturnsFailure", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -62,7 +62,7 @@ internal sealed class Tests_TryParse_InvalidString_ReturnsFailure_TestSource_GUI var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1304.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1304.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1304.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1304", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -146,17 +146,17 @@ internal sealed class Tests_Parse_InvalidString_ThrowsException_TestSource_GUID MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1304.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1304.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1304.Tests)), Name = "Parse_InvalidString_ThrowsException", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "input", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1304.Tests).GetMethod("Parse_InvalidString_ThrowsException", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -166,7 +166,7 @@ internal sealed class Tests_Parse_InvalidString_ThrowsException_TestSource_GUID var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1304.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1304.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1304.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1304", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -246,17 +246,17 @@ internal sealed class Tests_TryParse_ValidString_ReturnsAccountId_TestSource_GUI MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1304.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1304.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1304.Tests)), Name = "TryParse_ValidString_ReturnsAccountId", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "input", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1304.Tests).GetMethod("TryParse_ValidString_ReturnsAccountId", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -266,7 +266,7 @@ internal sealed class Tests_TryParse_ValidString_ReturnsAccountId_TestSource_GUI var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1304.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1304.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1304.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1304", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt index 746f66dcfa..4a6749511c 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1538.Test.verified.txt @@ -52,66 +52,66 @@ internal sealed class Tests_Eight_Args_TestSource_GUID : global::TUnit.Core.Inte MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1538.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1538.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1538.Tests)), Name = "Eight_Args", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "expectedSuccess", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("Eight_Args", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expectedError", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("Eight_Args", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expectedT0", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("Eight_Args", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[2] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expectedT1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("Eight_Args", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[3] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expectedT2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("Eight_Args", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[4] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expectedT3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("Eight_Args", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[5] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expectedT4", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("Eight_Args", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[6] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expectedT5", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("Eight_Args", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[7] } @@ -121,7 +121,7 @@ internal sealed class Tests_Eight_Args_TestSource_GUID : global::TUnit.Core.Inte var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1538.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1538.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1538.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1538", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -222,122 +222,122 @@ internal sealed class Tests_SixteenArgs_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1538.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1538.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1538.Tests)), Name = "SixteenArgs", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "expectedSuccess", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item1", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[2] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[3] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item4", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[4] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item5", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[5] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item6", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[6] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item7", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[7] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item8", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[8] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item9", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[9] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item10", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[10] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item11", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[11] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item12", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[12] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item13", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[13] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item14", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[14] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "item15", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1538.Tests).GetMethod("SixteenArgs", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string) }, null)!.GetParameters()[15] } @@ -347,7 +347,7 @@ internal sealed class Tests_SixteenArgs_TestSource_GUID : global::TUnit.Core.Int var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1538.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1538.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1538.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1538", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt index 7fcf9ce7dc..3a739b709a 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1539.Test.verified.txt @@ -32,18 +32,18 @@ internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1539.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1539.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1539.Tests)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._1539.Tests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1539.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1539.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1539.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1539", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt index 7ea8f73b7f..b34b16e7dd 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1589.Test.verified.txt @@ -34,18 +34,18 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1589.MyTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1589.MyTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1589.MyTests)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._1589.MyTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1589.MyTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1589.MyTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1589.MyTests)), Name = "MyTests", Namespace = "TUnit.TestProject.Bugs._1589", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -54,7 +54,7 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.Bugs._1589.MyFixture)) { Name = "myFixture", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1589.MyFixture, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1589.MyFixture)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1589.MyTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.Bugs._1589.MyFixture) })!.GetParameters()[0] } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt index 4c18a7f1ed..b8277907aa 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1594.Test.verified.txt @@ -34,18 +34,18 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1594.MyTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1594.MyTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1594.MyTests)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._1594.MyTests", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1594.MyTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1594.MyTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1594.MyTests)), Name = "MyTests", Namespace = "TUnit.TestProject.Bugs._1594", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -54,7 +54,7 @@ internal sealed class MyTests_Test1_TestSource_GUID : global::TUnit.Core.Interfa new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.Bugs._1594.MyFixture)) { Name = "myFixture", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1594.MyFixture, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1594.MyFixture)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1594.MyTests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.Bugs._1594.MyFixture) })!.GetParameters()[0] } diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt index f740622440..93583b5a6e 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1603.Test.verified.txt @@ -31,17 +31,17 @@ internal sealed class Tests_Casted_Integer_To_Short_Converts_TestSource_GUID : g MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1603.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1603.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1603.Tests)), Name = "Casted_Integer_To_Short_Converts", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(short)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("short, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(short)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1603.Tests).GetMethod("Casted_Integer_To_Short_Converts", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(short) }, null)!.GetParameters()[0] } @@ -51,7 +51,7 @@ internal sealed class Tests_Casted_Integer_To_Short_Converts_TestSource_GUID : g var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1603.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1603.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1603.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1603", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -130,17 +130,17 @@ internal sealed class Tests_Integer_To_Short_Converts_TestSource_GUID : global:: MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1603.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1603.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1603.Tests)), Name = "Integer_To_Short_Converts", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(short)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("short, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(short)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1603.Tests).GetMethod("Integer_To_Short_Converts", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(short) }, null)!.GetParameters()[0] } @@ -150,7 +150,7 @@ internal sealed class Tests_Integer_To_Short_Converts_TestSource_GUID : global:: var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1603.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1603.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1603.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1603", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt index 0762fad2fd..ef6dd2492b 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1692.Test.verified.txt @@ -32,17 +32,17 @@ internal sealed class Tests_NullTest_TestSource_GUID : global::TUnit.Core.Interf MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1692.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1692.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1692.Tests)), Name = "NullTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "t", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = true, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1692.Tests).GetMethod("NullTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -52,7 +52,7 @@ internal sealed class Tests_NullTest_TestSource_GUID : global::TUnit.Core.Interf var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1692.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1692.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1692.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1692", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt index ce751cac48..3edb803190 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1821.Test.verified.txt @@ -35,17 +35,17 @@ internal sealed class Tests_MethodDataSource_TestSource_GUID : global::TUnit.Cor MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1821.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1821.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1821.Tests)), Name = "MethodDataSource", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1821.Tests).GetMethod("MethodDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -55,7 +55,7 @@ internal sealed class Tests_MethodDataSource_TestSource_GUID : global::TUnit.Cor var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1821.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1821.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1821.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1821", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -64,7 +64,7 @@ internal sealed class Tests_MethodDataSource_TestSource_GUID : global::TUnit.Cor new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.Bugs._1821.MyData)) { Name = "data", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1821.MyData, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1821.MyData)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1821.Tests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.Bugs._1821.MyData) })!.GetParameters()[0] } @@ -150,17 +150,17 @@ internal sealed class Tests_MatrixDataSource_TestSource_GUID : global::TUnit.Cor MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1821.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1821.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1821.Tests)), Name = "MatrixDataSource", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1821.Tests).GetMethod("MatrixDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(string) }, null)!.GetParameters()[0] } @@ -170,7 +170,7 @@ internal sealed class Tests_MatrixDataSource_TestSource_GUID : global::TUnit.Cor var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1821.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1821.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1821.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._1821", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -179,7 +179,7 @@ internal sealed class Tests_MatrixDataSource_TestSource_GUID : global::TUnit.Cor new global::TUnit.Core.ParameterMetadata(typeof(global::TUnit.TestProject.Bugs._1821.MyData)) { Name = "data", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1821.MyData, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1821.MyData)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._1821.Tests).GetConstructor(new global::System.Type[] { typeof(global::TUnit.TestProject.Bugs._1821.MyData) })!.GetParameters()[0] } 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 24350fc30c..e14d3853f5 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet10_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet10_0.verified.txt @@ -29,18 +29,18 @@ internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._1889.DerivedTest", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -114,17 +114,17 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "condition", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest).GetMethod("Test2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool) }, null)!.GetParameters()[0] } @@ -134,7 +134,7 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -216,17 +216,17 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test3", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "condition", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest).GetMethod("Test3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool) }, null)!.GetParameters()[0] } @@ -236,7 +236,7 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 24350fc30c..e14d3853f5 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet8_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet8_0.verified.txt @@ -29,18 +29,18 @@ internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._1889.DerivedTest", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -114,17 +114,17 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "condition", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest).GetMethod("Test2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool) }, null)!.GetParameters()[0] } @@ -134,7 +134,7 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -216,17 +216,17 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test3", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "condition", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest).GetMethod("Test3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool) }, null)!.GetParameters()[0] } @@ -236,7 +236,7 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 24350fc30c..e14d3853f5 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet9_0.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.DotNet9_0.verified.txt @@ -29,18 +29,18 @@ internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._1889.DerivedTest", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -114,17 +114,17 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "condition", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest).GetMethod("Test2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool) }, null)!.GetParameters()[0] } @@ -134,7 +134,7 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -216,17 +216,17 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test3", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "condition", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest).GetMethod("Test3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool) }, null)!.GetParameters()[0] } @@ -236,7 +236,7 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), 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 27883b9835..1ffbf67541 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.Net4_7.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1889.Test.Net4_7.verified.txt @@ -29,18 +29,18 @@ internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._1889.DerivedTest", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -114,17 +114,17 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "condition", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest).GetMethod("Test2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool) }, null)!.GetParameters()[0] } @@ -134,7 +134,7 @@ internal sealed class DerivedTest_Test2_TestSource_GUID : global::TUnit.Core.Int var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -216,17 +216,17 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1889.BaseTest<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest)), Name = "Test3", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "condition", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Library.Bugs._1889.BaseTest).GetMethod("Test3", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(bool) }, null)!.GetParameters()[0] } @@ -236,7 +236,7 @@ internal sealed class DerivedTest_Test3_TestSource_GUID : global::TUnit.Core.Int var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1889.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1889.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1889", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt index d321a6b76d..3c85d2f51e 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests1899.Test.verified.txt @@ -29,18 +29,18 @@ internal sealed class DerivedTest_Test1_TestSource_GUID : global::TUnit.Core.Int MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Library.Bugs._1899.BaseClass), - TypeReference = global::TUnit.Core.TypeReference.CreateConstructedGeneric("TUnit.TestProject.Library.Bugs._1899.BaseClass<>, TestsBase`1", global::TUnit.Core.TypeReference.CreateConcrete("DummyReferenceTypeClass, TestsBase`1")), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Library.Bugs._1899.BaseClass)), Name = "Test1", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._1899.DerivedTest", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._1899.DerivedTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._1899.DerivedTest, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._1899.DerivedTest)), Name = "DerivedTest", Namespace = "TUnit.TestProject.Bugs._1899", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt index 81faf945c7..c1fde01db0 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2083.Test.verified.txt @@ -36,17 +36,17 @@ internal sealed class Tests_MyTest_TestSource_GUID : global::TUnit.Core.Interfac MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2083.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2083.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2083.Tests)), Name = "MyTest", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(long)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("long, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(long)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._2083.Tests).GetMethod("MyTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(long) }, null)!.GetParameters()[0] } @@ -56,7 +56,7 @@ internal sealed class Tests_MyTest_TestSource_GUID : global::TUnit.Core.Interfac var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2083.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2083.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2083.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2083", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt index 642a9d67ee..80c88d7f8f 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2085.Test.verified.txt @@ -31,17 +31,17 @@ internal sealed class Tests_Double_SpecialConsts_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2085.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2085.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2085.Tests)), Name = "Double_SpecialConsts", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(double)) { Name = "d", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("double, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(double)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._2085.Tests).GetMethod("Double_SpecialConsts", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(double) }, null)!.GetParameters()[0] } @@ -51,7 +51,7 @@ internal sealed class Tests_Double_SpecialConsts_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2085.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2085.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2085.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2085", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -130,17 +130,17 @@ internal sealed class Tests_Float_SpecialConsts_TestSource_GUID : global::TUnit. MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2085.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2085.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2085.Tests)), Name = "Float_SpecialConsts", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(float)) { Name = "d", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("float, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(float)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._2085.Tests).GetMethod("Float_SpecialConsts", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(float) }, null)!.GetParameters()[0] } @@ -150,7 +150,7 @@ internal sealed class Tests_Float_SpecialConsts_TestSource_GUID : global::TUnit. var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2085.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2085.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2085.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2085", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt index 99dc0832d7..13ff1fbb47 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2112.Test.verified.txt @@ -32,24 +32,24 @@ internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2112.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2112.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2112.Tests)), Name = "Test", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "a", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._2112.Tests).GetMethod("Test", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(long[]) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(long[])) { Name = "arr", - TypeReference = global::TUnit.Core.TypeReference.CreateArray(global::TUnit.Core.TypeReference.CreateConcrete("long, System.Private.CoreLib"), 1), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(long[])), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._2112.Tests).GetMethod("Test", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(long[]) }, null)!.GetParameters()[1] } @@ -59,7 +59,7 @@ internal sealed class Tests_Test_TestSource_GUID : global::TUnit.Core.Interfaces var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2112.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2112.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2112.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2112", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -158,24 +158,24 @@ internal sealed class Tests_Test2_TestSource_GUID : global::TUnit.Core.Interface MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2112.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2112.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2112.Tests)), Name = "Test2", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "a", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._2112.Tests).GetMethod("Test2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(long[]) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(long[])) { Name = "arr", - TypeReference = global::TUnit.Core.TypeReference.CreateArray(global::TUnit.Core.TypeReference.CreateConcrete("long, System.Private.CoreLib"), 1), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(long[])), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._2112.Tests).GetMethod("Test2", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(long[]) }, null)!.GetParameters()[1] } @@ -185,7 +185,7 @@ internal sealed class Tests_Test2_TestSource_GUID : global::TUnit.Core.Interface var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2112.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2112.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2112.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2112", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt index c9284e0fc0..be0246ecf9 100644 --- a/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/Tests2136.Test.verified.txt @@ -29,24 +29,24 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "GenericArgumentsTest", GenericTypeCount = 1, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "T"), + TypeInfo = new global::TUnit.Core.GenericParameter(0, true, "T"), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[0]! }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expected", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[1]! } @@ -56,7 +56,7 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2136", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -106,24 +106,24 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "GenericArgumentsTest", GenericTypeCount = 1, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "T"), + TypeInfo = new global::TUnit.Core.GenericParameter(0, true, "T"), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[0]! }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expected", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[1]! } @@ -133,7 +133,7 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2136", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -188,24 +188,24 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "GenericArgumentsTest", GenericTypeCount = 1, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "T"), + TypeInfo = new global::TUnit.Core.GenericParameter(0, true, "T"), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[0]! }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expected", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[1]! } @@ -215,7 +215,7 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2136", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -270,24 +270,24 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "GenericArgumentsTest", GenericTypeCount = 1, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "T"), + TypeInfo = new global::TUnit.Core.GenericParameter(0, true, "T"), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[0]! }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expected", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[1]! } @@ -297,7 +297,7 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2136", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -352,24 +352,24 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "GenericArgumentsTest", GenericTypeCount = 1, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "T"), + TypeInfo = new global::TUnit.Core.GenericParameter(0, true, "T"), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[0]! }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expected", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[1]! } @@ -379,7 +379,7 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2136", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -434,24 +434,24 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "GenericArgumentsTest", GenericTypeCount = 1, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(object)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateGenericParameter(0, true, "T"), + TypeInfo = new global::TUnit.Core.GenericParameter(0, true, "T"), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[0]! }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "expected", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = global::System.Linq.Enumerable.FirstOrDefault(typeof(global::TUnit.TestProject.Bugs._2136.Tests).GetMethods(global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance | global::System.Reflection.BindingFlags.Static), m => m.Name == "GenericArgumentsTest" && m.GetParameters().Length == 2)?.GetParameters()[1]! } @@ -461,7 +461,7 @@ internal sealed class Tests_GenericArgumentsTest_TestSource_GUID : global::TUnit var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.Bugs._2136.Tests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.Bugs._2136.Tests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.Bugs._2136.Tests)), Name = "Tests", Namespace = "TUnit.TestProject.Bugs._2136", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt index 4e28c1f411..60c07529f3 100644 --- a/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/TimeoutCancellationTokenTests.Test.verified.txt @@ -54,17 +54,17 @@ internal sealed class TimeoutCancellationTokenTests_DefaultTest_TestSource_GUID MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "DefaultTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetMethod("DefaultTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] } @@ -74,7 +74,7 @@ internal sealed class TimeoutCancellationTokenTests_DefaultTest_TestSource_GUID var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "TimeoutCancellationTokenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -83,7 +83,7 @@ internal sealed class TimeoutCancellationTokenTests_DefaultTest_TestSource_GUID new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetConstructor(new global::System.Type[] { typeof(int) })!.GetParameters()[0] } @@ -183,17 +183,17 @@ internal sealed class TimeoutCancellationTokenTests_BasicTest_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "BasicTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetMethod("BasicTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] } @@ -203,7 +203,7 @@ internal sealed class TimeoutCancellationTokenTests_BasicTest_TestSource_GUID : var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "TimeoutCancellationTokenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -212,7 +212,7 @@ internal sealed class TimeoutCancellationTokenTests_BasicTest_TestSource_GUID : new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetConstructor(new global::System.Type[] { typeof(int) })!.GetParameters()[0] } @@ -311,17 +311,17 @@ internal sealed class TimeoutCancellationTokenTests_InheritedTimeoutAttribute_Te MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "InheritedTimeoutAttribute", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetMethod("InheritedTimeoutAttribute", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] } @@ -331,7 +331,7 @@ internal sealed class TimeoutCancellationTokenTests_InheritedTimeoutAttribute_Te var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "TimeoutCancellationTokenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -340,7 +340,7 @@ internal sealed class TimeoutCancellationTokenTests_InheritedTimeoutAttribute_Te new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetConstructor(new global::System.Type[] { typeof(int) })!.GetParameters()[0] } @@ -442,24 +442,24 @@ internal sealed class TimeoutCancellationTokenTests_DataTest_TestSource_GUID : g MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "DataTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetMethod("DataTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetMethod("DataTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -469,7 +469,7 @@ internal sealed class TimeoutCancellationTokenTests_DataTest_TestSource_GUID : g var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "TimeoutCancellationTokenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -478,7 +478,7 @@ internal sealed class TimeoutCancellationTokenTests_DataTest_TestSource_GUID : g new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetConstructor(new global::System.Type[] { typeof(int) })!.GetParameters()[0] } @@ -609,24 +609,24 @@ internal sealed class TimeoutCancellationTokenTests_DataSourceTest_TestSource_GU MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "DataSourceTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetMethod("DataSourceTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetMethod("DataSourceTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -636,7 +636,7 @@ internal sealed class TimeoutCancellationTokenTests_DataSourceTest_TestSource_GU var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "TimeoutCancellationTokenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -645,7 +645,7 @@ internal sealed class TimeoutCancellationTokenTests_DataSourceTest_TestSource_GU new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetConstructor(new global::System.Type[] { typeof(int) })!.GetParameters()[0] } @@ -756,24 +756,24 @@ internal sealed class TimeoutCancellationTokenTests_MatrixTest_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "MatrixTest", GenericTypeCount = 0, ReturnType = typeof(global::System.Threading.Tasks.Task), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.Tasks.Task, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.Tasks.Task)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetMethod("MatrixTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(global::System.Threading.CancellationToken)) { Name = "cancellationToken", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("System.Threading.CancellationToken, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::System.Threading.CancellationToken)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetMethod("MatrixTest", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(global::System.Threading.CancellationToken) }, null)!.GetParameters()[1] } @@ -783,7 +783,7 @@ internal sealed class TimeoutCancellationTokenTests_MatrixTest_TestSource_GUID : var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TimeoutCancellationTokenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests)), Name = "TimeoutCancellationTokenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), @@ -792,7 +792,7 @@ internal sealed class TimeoutCancellationTokenTests_MatrixTest_TestSource_GUID : new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TimeoutCancellationTokenTests).GetConstructor(new global::System.Type[] { typeof(int) })!.GetParameters()[0] } diff --git a/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt b/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt index eb661f24ad..f8eb8d093a 100644 --- a/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/TupleDataSourceDrivenTests.Test.verified.txt @@ -42,31 +42,31 @@ internal sealed class TupleDataSourceDrivenTests_DataSource_TupleMethod_TestSour MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TupleDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TupleDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TupleDataSourceDrivenTests)), Name = "DataSource_TupleMethod", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "value", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TupleDataSourceDrivenTests).GetMethod("DataSource_TupleMethod", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(string)) { Name = "value2", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("string, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(string)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TupleDataSourceDrivenTests).GetMethod("DataSource_TupleMethod", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(bool)) { Name = "value3", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("bool, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(bool)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.TupleDataSourceDrivenTests).GetMethod("DataSource_TupleMethod", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(string), typeof(bool) }, null)!.GetParameters()[2] } @@ -76,7 +76,7 @@ internal sealed class TupleDataSourceDrivenTests_DataSource_TupleMethod_TestSour var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TupleDataSourceDrivenTests), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TupleDataSourceDrivenTests, TestsBase`1"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TupleDataSourceDrivenTests)), Name = "TupleDataSourceDrivenTests", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", () => new global::TUnit.Core.AssemblyMetadata { Name = "TestsBase`1" }), diff --git a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt index 92691a0506..7391acc7af 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_AotSafeDataSourceFactories.verified.txt @@ -31,31 +31,31 @@ internal sealed class AotDataSourceTest_TestWithDataSource_TestSource_GUID : glo MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.AotDataSourceTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AotDataSourceTest, UnifiedReflectionFreeTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AotDataSourceTest)), Name = "TestWithDataSource", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = new global::TUnit.Core.ParameterMetadata[] { new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "a", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AotDataSourceTest).GetMethod("TestWithDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(int), typeof(int) }, null)!.GetParameters()[0] }, new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "b", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AotDataSourceTest).GetMethod("TestWithDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(int), typeof(int) }, null)!.GetParameters()[1] }, new global::TUnit.Core.ParameterMetadata(typeof(int)) { Name = "c", - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("int, System.Private.CoreLib"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(int)), IsNullable = false, ReflectionInfo = typeof(global::TUnit.TestProject.AotDataSourceTest).GetMethod("TestWithDataSource", global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Instance, null, new global::System.Type[] { typeof(int), typeof(int), typeof(int) }, null)!.GetParameters()[2] } @@ -65,7 +65,7 @@ internal sealed class AotDataSourceTest_TestWithDataSource_TestSource_GUID : glo var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.AotDataSourceTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.AotDataSourceTest, UnifiedReflectionFreeTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.AotDataSourceTest)), Name = "AotDataSourceTest", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("UnifiedReflectionFreeTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "UnifiedReflectionFreeTests" }), diff --git a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt index da458420d2..fbd1a8c41f 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ConfigurationSupport.verified.txt @@ -27,18 +27,18 @@ internal sealed class ConfigurationTest_TestWithConfiguration_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ConfigurationTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConfigurationTest, UnifiedReflectionFreeTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConfigurationTest)), Name = "TestWithConfiguration", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("UnifiedReflectionFreeTests:global::TUnit.TestProject.ConfigurationTest", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ConfigurationTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ConfigurationTest, UnifiedReflectionFreeTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ConfigurationTest)), Name = "ConfigurationTest", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("UnifiedReflectionFreeTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "UnifiedReflectionFreeTests" }), 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 d932255add..48d71739df 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ModuleInitializer_Generation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_ModuleInitializer_Generation.verified.txt @@ -27,18 +27,18 @@ internal sealed class ModuleInitializerTest_TestWithModuleInit_TestSource_GUID : MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.ModuleInitializerTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ModuleInitializerTest, UnifiedReflectionFreeTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ModuleInitializerTest)), Name = "TestWithModuleInit", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("UnifiedReflectionFreeTests:global::TUnit.TestProject.ModuleInitializerTest", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.ModuleInitializerTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.ModuleInitializerTest, UnifiedReflectionFreeTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.ModuleInitializerTest)), Name = "ModuleInitializerTest", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("UnifiedReflectionFreeTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "UnifiedReflectionFreeTests" }), 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 f59167a47e..46b9c93deb 100644 --- a/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_StronglyTypedDelegates_Generation.verified.txt +++ b/TUnit.Core.SourceGenerator.Tests/UnifiedReflectionFreeTests.Test_StronglyTypedDelegates_Generation.verified.txt @@ -27,18 +27,18 @@ internal sealed class TypedDelegateTest_TestWithDelegate_TestSource_GUID : globa MethodMetadata = new global::TUnit.Core.MethodMetadata { Type = typeof(global::TUnit.TestProject.TypedDelegateTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TypedDelegateTest, UnifiedReflectionFreeTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TypedDelegateTest)), Name = "TestWithDelegate", GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = global::TUnit.Core.TypeReference.CreateConcrete("void, System.Private.CoreLib"), + ReturnTypeInfo = new global::TUnit.Core.ConcreteType(typeof(void)), Parameters = global::System.Array.Empty(), Class = global::TUnit.Core.ClassMetadata.GetOrAdd("UnifiedReflectionFreeTests:global::TUnit.TestProject.TypedDelegateTest", () => { var classMetadata = new global::TUnit.Core.ClassMetadata { Type = typeof(global::TUnit.TestProject.TypedDelegateTest), - TypeReference = global::TUnit.Core.TypeReference.CreateConcrete("TUnit.TestProject.TypedDelegateTest, UnifiedReflectionFreeTests"), + TypeInfo = new global::TUnit.Core.ConcreteType(typeof(global::TUnit.TestProject.TypedDelegateTest)), Name = "TypedDelegateTest", Namespace = "TUnit.TestProject", Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("UnifiedReflectionFreeTests", () => new global::TUnit.Core.AssemblyMetadata { Name = "UnifiedReflectionFreeTests" }), diff --git a/TUnit.Core.SourceGenerator/CodeGenerationHelpers.cs b/TUnit.Core.SourceGenerator/CodeGenerationHelpers.cs index 2dd803c7d9..64caf5a297 100644 --- a/TUnit.Core.SourceGenerator/CodeGenerationHelpers.cs +++ b/TUnit.Core.SourceGenerator/CodeGenerationHelpers.cs @@ -36,7 +36,7 @@ public static string GenerateParameterMetadataArray(IMethodSymbol method) using (writer.BeginObjectInitializer($"new global::TUnit.Core.ParameterMetadata(typeof({typeForConstructor}))", ",")) { writer.AppendLine($"Name = \"{param.Name}\","); - writer.AppendLine($"TypeReference = {GenerateTypeReference(param.Type)},"); + writer.AppendLine($"TypeInfo = {GenerateTypeInfo(param.Type)},"); writer.AppendLine($"IsNullable = {param.Type.IsNullable().ToString().ToLowerInvariant()},"); var paramTypesArray = GenerateParameterTypesArray(method); if (paramTypesArray == "null") @@ -574,52 +574,51 @@ public static string GenerateTestAttributes(IMethodSymbol methodSymbol) } /// - /// Generates C# code to create a TypeReference from an ITypeSymbol. + /// Generates C# code to create a TypeInfo from an ITypeSymbol. /// - public static string GenerateTypeReference(ITypeSymbol typeSymbol) + public static string GenerateTypeInfo(ITypeSymbol typeSymbol) { if (typeSymbol is ITypeParameterSymbol typeParameter) { // This is a generic parameter (e.g., T, TKey) var position = GetGenericParameterPosition(typeParameter); var isMethodParameter = typeParameter.DeclaringMethod != null; - return $@"global::TUnit.Core.TypeReference.CreateGenericParameter({position}, {(isMethodParameter ? "true" : "false")}, ""{typeParameter.Name}"")"; - } - - if (typeSymbol is IArrayTypeSymbol arrayType) - { - // This is an array type - var elementTypeRef = GenerateTypeReference(arrayType.ElementType); - return $@"global::TUnit.Core.TypeReference.CreateArray({elementTypeRef}, {arrayType.Rank})"; - } - - if (typeSymbol is IPointerTypeSymbol pointerType) - { - // This is a pointer type - var elementTypeRef = GenerateTypeReference(pointerType.PointedAtType); - return $@"new global::TUnit.Core.TypeReference {{ IsPointer = true, ElementType = {elementTypeRef} }}"; + return $@"new global::TUnit.Core.GenericParameter({position}, {(isMethodParameter ? "true" : "false")}, ""{typeParameter.Name}"")"; } if (typeSymbol is INamedTypeSymbol { IsGenericType: true, IsUnboundGenericType: false } namedType) { // This is a constructed generic type (e.g., List, Dictionary) - var genericDef = GetGenericTypeDefinitionName(namedType); - var genericArgs = namedType.TypeArguments.Select(GenerateTypeReference).ToArray(); + // Check if all type arguments are concrete (no generic parameters) + var hasGenericParameters = namedType.TypeArguments.Any(ContainsTypeParameter); - using var writer = new CodeWriter("", includeHeader: false); - writer.SetIndentLevel(1); - writer.Append($@"global::TUnit.Core.TypeReference.CreateConstructedGeneric(""{genericDef}"""); - foreach (var arg in genericArgs) + if (hasGenericParameters) { - writer.Append($", {arg}"); + // Has generic parameters - use ConstructedGeneric + var genericDefType = GetTypeOfExpression(namedType.ConstructUnboundGenericType()); + var genericArgs = namedType.TypeArguments.Select(GenerateTypeInfo).ToArray(); + + using var writer = new CodeWriter("", includeHeader: false); + writer.SetIndentLevel(1); + writer.Append($@"new global::TUnit.Core.ConstructedGeneric({genericDefType}, [{string.Join(", ", genericArgs)}])"); + return writer.ToString().Trim(); } - writer.Append(")"); - return writer.ToString().Trim(); + // All type arguments are concrete - this is just a concrete type + // Fall through to regular typeof() handling } - // Regular concrete type - var assemblyQualifiedName = GetAssemblyQualifiedName(typeSymbol); - return $@"global::TUnit.Core.TypeReference.CreateConcrete(""{assemblyQualifiedName}"")"; + // Regular concrete type (including fully closed generic types like List) + var typeOfExpression = GetTypeOfExpression(typeSymbol); + return $@"new global::TUnit.Core.ConcreteType({typeOfExpression})"; + } + + /// + /// Generates a typeof() expression for the given type symbol. + /// + private static string GetTypeOfExpression(ITypeSymbol typeSymbol) + { + var fullyQualifiedName = typeSymbol.ToDisplayString(DisplayFormats.FullyQualifiedGenericWithGlobalPrefix); + return $"typeof({fullyQualifiedName})"; } private static int GetGenericParameterPosition(ITypeParameterSymbol typeParameter) diff --git a/TUnit.Core.SourceGenerator/CodeGenerators/StaticPropertyInitializationGenerator.cs b/TUnit.Core.SourceGenerator/CodeGenerators/StaticPropertyInitializationGenerator.cs index 39926eb011..ffcdfb1a15 100644 --- a/TUnit.Core.SourceGenerator/CodeGenerators/StaticPropertyInitializationGenerator.cs +++ b/TUnit.Core.SourceGenerator/CodeGenerators/StaticPropertyInitializationGenerator.cs @@ -165,7 +165,7 @@ private static void GenerateIndividualPropertyInitializer(CodeWriter writer, Pro writer.AppendLine($"Name = \"{propertyData.Property.ContainingType.Name}\","); writer.AppendLine($"Type = typeof({typeName}),"); writer.AppendLine($"Namespace = \"{propertyData.Property.ContainingType.ContainingNamespace?.ToDisplayString() ?? string.Empty}\","); - writer.AppendLine($"TypeReference = global::TUnit.Core.TypeReference.CreateConcrete(typeof({typeName}).AssemblyQualifiedName),"); + writer.AppendLine($"TypeInfo = new global::TUnit.Core.ConcreteType(typeof({typeName})),"); writer.AppendLine($"Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd(\"{propertyData.Property.ContainingType.ContainingAssembly.Name}\", () => new global::TUnit.Core.AssemblyMetadata {{ Name = \"{propertyData.Property.ContainingType.ContainingAssembly.Name}\" }}),"); writer.AppendLine("Properties = System.Array.Empty(),"); writer.AppendLine("Parameters = System.Array.Empty(),"); diff --git a/TUnit.Core.SourceGenerator/Utilities/MetadataGenerationHelper.cs b/TUnit.Core.SourceGenerator/Utilities/MetadataGenerationHelper.cs index 5fc12fe4b1..092a5ce232 100644 --- a/TUnit.Core.SourceGenerator/Utilities/MetadataGenerationHelper.cs +++ b/TUnit.Core.SourceGenerator/Utilities/MetadataGenerationHelper.cs @@ -73,11 +73,11 @@ public static void WriteMethodMetadata(ICodeWriter writer, IMethodSymbol methodS var safeReturnTypeDisplay = methodSymbol.ReturnType.GloballyQualified(); writer.AppendLine($"Type = typeof({safeTypeDisplay}),"); - writer.AppendLine($"TypeReference = {CodeGenerationHelpers.GenerateTypeReference(methodSymbol.ContainingType)},"); + writer.AppendLine($"TypeInfo = {CodeGenerationHelpers.GenerateTypeInfo(methodSymbol.ContainingType)},"); writer.AppendLine($"Name = \"{methodSymbol.Name}\","); writer.AppendLine($"GenericTypeCount = {methodSymbol.TypeParameters.Length},"); writer.AppendLine($"ReturnType = typeof({safeReturnTypeDisplay}),"); - writer.AppendLine($"ReturnTypeReference = {CodeGenerationHelpers.GenerateTypeReference(methodSymbol.ReturnType)},"); + writer.AppendLine($"ReturnTypeInfo = {CodeGenerationHelpers.GenerateTypeInfo(methodSymbol.ReturnType)},"); writer.Append($"Parameters = "); WriteParameterMetadataArrayForMethod(writer, methodSymbol); writer.AppendLine(","); @@ -106,11 +106,11 @@ public static string GenerateMethodMetadata(IMethodSymbol methodSymbol, string c var safeReturnTypeDisplay = methodSymbol.ReturnType.GloballyQualified(); writer.AppendLine($"Type = typeof({safeTypeDisplay}),"); - writer.AppendLine($"TypeReference = {CodeGenerationHelpers.GenerateTypeReference(methodSymbol.ContainingType)},"); + writer.AppendLine($"TypeInfo = {CodeGenerationHelpers.GenerateTypeInfo(methodSymbol.ContainingType)},"); writer.AppendLine($"Name = \"{methodSymbol.Name}\","); writer.AppendLine($"GenericTypeCount = {methodSymbol.TypeParameters.Length},"); writer.AppendLine($"ReturnType = typeof({safeReturnTypeDisplay}),"); - writer.AppendLine($"ReturnTypeReference = {CodeGenerationHelpers.GenerateTypeReference(methodSymbol.ReturnType)},"); + writer.AppendLine($"ReturnTypeInfo = {CodeGenerationHelpers.GenerateTypeInfo(methodSymbol.ReturnType)},"); writer.AppendLine($"Parameters = {GenerateParameterMetadataArrayForMethod(methodSymbol, writer.IndentLevel)},"); writer.AppendLine($"Class = {classMetadataExpression}"); @@ -141,7 +141,7 @@ private static void WriteClassMetadataGetOrAdd(ICodeWriter writer, INamedTypeSym writer.SetIndentLevel(currentIndent + 2); writer.AppendLine($"Type = typeof({typeSymbol.GloballyQualified()}),"); - writer.AppendLine($"TypeReference = {CodeGenerationHelpers.GenerateTypeReference(typeSymbol)},"); + writer.AppendLine($"TypeInfo = {CodeGenerationHelpers.GenerateTypeInfo(typeSymbol)},"); writer.AppendLine($"Name = \"{typeSymbol.Name}\","); writer.AppendLine($"Namespace = \"{typeSymbol.ContainingNamespace?.ToDisplayString() ?? ""}\","); writer.AppendLine($"Assembly = {GenerateAssemblyMetadataGetOrAdd(typeSymbol.ContainingAssembly)},"); @@ -209,7 +209,7 @@ public static string GenerateClassMetadataGetOrAdd(INamedTypeSymbol typeSymbol, writer.Indent(); writer.AppendLine($"Type = typeof({typeSymbol.GloballyQualified()}),"); - writer.AppendLine($"TypeReference = {CodeGenerationHelpers.GenerateTypeReference(typeSymbol)},"); + writer.AppendLine($"TypeInfo = {CodeGenerationHelpers.GenerateTypeInfo(typeSymbol)},"); writer.AppendLine($"Name = \"{typeSymbol.Name}\","); writer.AppendLine($"Namespace = \"{typeSymbol.ContainingNamespace?.ToDisplayString() ?? ""}\","); writer.AppendLine($"Assembly = {GenerateAssemblyMetadataGetOrAdd(typeSymbol.ContainingAssembly)},"); @@ -277,7 +277,7 @@ public static void WriteParameterMetadataGeneric(ICodeWriter writer, IParameterS writer.SetIndentLevel(currentIndent + 1); writer.AppendLine($"Name = \"{parameter.Name}\","); - writer.AppendLine($"TypeReference = {CodeGenerationHelpers.GenerateTypeReference(parameter.Type)},"); + writer.AppendLine($"TypeInfo = {CodeGenerationHelpers.GenerateTypeInfo(parameter.Type)},"); writer.Append($"ReflectionInfo = {reflectionInfo}"); // Manually restore indent level @@ -303,7 +303,7 @@ public static void WriteParameterMetadata(ICodeWriter writer, IParameterSymbol p writer.SetIndentLevel(currentIndent + 1); writer.AppendLine($"Name = \"{parameter.Name}\","); - writer.AppendLine($"TypeReference = {CodeGenerationHelpers.GenerateTypeReference(parameter.Type)},"); + writer.AppendLine($"TypeInfo = {CodeGenerationHelpers.GenerateTypeInfo(parameter.Type)},"); writer.AppendLine($"IsNullable = {parameter.Type.IsNullable().ToString().ToLowerInvariant()},"); writer.Append($"ReflectionInfo = {reflectionInfo}"); diff --git a/TUnit.Core/DataGeneratorMetadataCreator.cs b/TUnit.Core/DataGeneratorMetadataCreator.cs index bcb0d6ef55..646290ceb6 100644 --- a/TUnit.Core/DataGeneratorMetadataCreator.cs +++ b/TUnit.Core/DataGeneratorMetadataCreator.cs @@ -123,7 +123,7 @@ public static DataGeneratorMetadata CreateForGenericTypeDiscovery( var dummyParameter = new ParameterMetadata(typeof(object)) { Name = "param0", - TypeReference = new TypeReference { AssemblyQualifiedName = typeof(object).AssemblyQualifiedName }, + TypeInfo = new ConcreteType(typeof(object)), ReflectionInfo = null! }; @@ -136,7 +136,7 @@ public static DataGeneratorMetadata CreateForGenericTypeDiscovery( Name = "Discovery", Type = typeof(object), Namespace = string.Empty, - TypeReference = new TypeReference { AssemblyQualifiedName = typeof(object).AssemblyQualifiedName }, + TypeInfo = new ConcreteType(typeof(object)), Assembly = AssemblyMetadata.GetOrAdd("Discovery", () => new AssemblyMetadata { Name = "Discovery" }), Parameters = [dummyParameter], Properties = [], @@ -144,9 +144,9 @@ public static DataGeneratorMetadata CreateForGenericTypeDiscovery( }), Parameters = [], GenericTypeCount = 0, - ReturnTypeReference = new TypeReference { AssemblyQualifiedName = typeof(void).AssemblyQualifiedName }, + ReturnTypeInfo = new ConcreteType(typeof(void)), ReturnType = typeof(void), - TypeReference = new TypeReference { AssemblyQualifiedName = typeof(object).AssemblyQualifiedName } + TypeInfo = new ConcreteType(typeof(object)) }; return new DataGeneratorMetadata @@ -268,14 +268,14 @@ private static ClassMetadata GetClassMetadataForType(Type type) var constructorParameters = constructor?.GetParameters().Select((p, i) => new ParameterMetadata(p.ParameterType) { Name = p.Name ?? $"param{i}", - TypeReference = new TypeReference { AssemblyQualifiedName = p.ParameterType.AssemblyQualifiedName }, + TypeInfo = new ConcreteType(p.ParameterType), ReflectionInfo = p }).ToArray() ?? Array.Empty(); return new ClassMetadata { Type = type, - TypeReference = TypeReference.CreateConcrete(type.AssemblyQualifiedName ?? type.FullName ?? type.Name), + TypeInfo = new ConcreteType(type), Name = type.Name, Namespace = type.Namespace ?? string.Empty, Assembly = AssemblyMetadata.GetOrAdd(type.Assembly.GetName().Name ?? type.Assembly.GetName().FullName ?? "Unknown", () => new AssemblyMetadata diff --git a/TUnit.Core/Hooks/LastTestInAssemblyClassAdapter.cs b/TUnit.Core/Hooks/LastTestInAssemblyClassAdapter.cs index 8af2371239..aa70e7627d 100644 --- a/TUnit.Core/Hooks/LastTestInAssemblyClassAdapter.cs +++ b/TUnit.Core/Hooks/LastTestInAssemblyClassAdapter.cs @@ -11,27 +11,27 @@ public class LastTestInAssemblyAdapter(ILastTestInAssemblyEventReceiver lastTest public MethodMetadata MethodInfo => field ??= new MethodMetadata { Type = typeof(ILastTestInAssemblyEventReceiver), - TypeReference = TypeReference.CreateConcrete(typeof(ILastTestInAssemblyEventReceiver).AssemblyQualifiedName!), + TypeInfo = new ConcreteType(typeof(ILastTestInAssemblyEventReceiver)), Name = nameof(lastTestInAssemblyEventReceiver.OnLastTestInAssembly), Parameters = [new ParameterMetadata { - TypeReference = TypeReference.CreateConcrete(typeof(AssemblyHookContext).AssemblyQualifiedName!), + TypeInfo = new ConcreteType(typeof(AssemblyHookContext)), Name = "context", ReflectionInfo = typeof(ILastTestInAssemblyEventReceiver).GetMethod(nameof(ILastTestInAssemblyEventReceiver.OnLastTestInAssembly))!.GetParameters()[0], }, new ParameterMetadata { - TypeReference = TypeReference.CreateConcrete(typeof(TestContext).AssemblyQualifiedName!), + TypeInfo = new ConcreteType(typeof(TestContext)), Name = "testContext", ReflectionInfo = typeof(ILastTestInAssemblyEventReceiver).GetMethod(nameof(ILastTestInAssemblyEventReceiver.OnLastTestInAssembly))!.GetParameters()[1], }], GenericTypeCount = 0, ReturnType = typeof(ValueTask), - ReturnTypeReference = TypeReference.CreateConcrete(typeof(ValueTask).AssemblyQualifiedName!), + ReturnTypeInfo = new ConcreteType(typeof(ValueTask)), Class = new ClassMetadata { Parent = null, Type = typeof(ILastTestInAssemblyEventReceiver), - TypeReference = TypeReference.CreateConcrete(typeof(ILastTestInAssemblyEventReceiver).AssemblyQualifiedName!), + TypeInfo = new ConcreteType(typeof(ILastTestInAssemblyEventReceiver)), Assembly = new AssemblyMetadata { Name = "TUnit.Core", diff --git a/TUnit.Core/Hooks/LastTestInClassAdapter.cs b/TUnit.Core/Hooks/LastTestInClassAdapter.cs index d328c2d245..ab1edaf45c 100644 --- a/TUnit.Core/Hooks/LastTestInClassAdapter.cs +++ b/TUnit.Core/Hooks/LastTestInClassAdapter.cs @@ -14,27 +14,27 @@ public class LastTestInClassAdapter(ILastTestInClassEventReceiver lastTestInClas public MethodMetadata MethodInfo => field ??= new MethodMetadata { Type = typeof(ILastTestInClassEventReceiver), - TypeReference = TypeReference.CreateConcrete(typeof(ILastTestInClassEventReceiver).AssemblyQualifiedName!), + TypeInfo = new ConcreteType(typeof(ILastTestInClassEventReceiver)), Name = nameof(lastTestInClassEventReceiver.OnLastTestInClass), Parameters = [new ParameterMetadata { - TypeReference = TypeReference.CreateConcrete(typeof(ClassHookContext).AssemblyQualifiedName!), + TypeInfo = new ConcreteType(typeof(ClassHookContext)), Name = "context", ReflectionInfo = typeof(ILastTestInClassEventReceiver).GetMethod(nameof(ILastTestInClassEventReceiver.OnLastTestInClass))!.GetParameters()[0], }, new ParameterMetadata { - TypeReference = TypeReference.CreateConcrete(typeof(TestContext).AssemblyQualifiedName!), + TypeInfo = new ConcreteType(typeof(TestContext)), Name = "testContext", ReflectionInfo = typeof(ILastTestInClassEventReceiver).GetMethod(nameof(ILastTestInClassEventReceiver.OnLastTestInClass))!.GetParameters()[0], }], GenericTypeCount = 0, ReturnType = typeof(ValueTask), - ReturnTypeReference = TypeReference.CreateConcrete(typeof(ValueTask).AssemblyQualifiedName!), + ReturnTypeInfo = new ConcreteType(typeof(ValueTask)), Class = new ClassMetadata { Parent = null, Type = typeof(ILastTestInClassEventReceiver), - TypeReference = TypeReference.CreateConcrete(typeof(ILastTestInClassEventReceiver).AssemblyQualifiedName!), + TypeInfo = new ConcreteType(typeof(ILastTestInClassEventReceiver)), Assembly = new AssemblyMetadata { Name = "TUnit.Core", diff --git a/TUnit.Core/Models/TestModels/ClassMetadata.cs b/TUnit.Core/Models/TestModels/ClassMetadata.cs index a0e1bfdcb9..d6c1dbed93 100644 --- a/TUnit.Core/Models/TestModels/ClassMetadata.cs +++ b/TUnit.Core/Models/TestModels/ClassMetadata.cs @@ -39,7 +39,7 @@ public override int GetHashCode() return Type.GetHashCode(); } - public required TypeReference TypeReference { get; init; } + public required TypeInfo TypeInfo { get; init; } [DynamicallyAccessedMembers( DynamicallyAccessedMemberTypes.PublicConstructors diff --git a/TUnit.Core/Models/TestModels/MethodMetadata.cs b/TUnit.Core/Models/TestModels/MethodMetadata.cs index e2591f4dad..8e0dab02c1 100644 --- a/TUnit.Core/Models/TestModels/MethodMetadata.cs +++ b/TUnit.Core/Models/TestModels/MethodMetadata.cs @@ -13,15 +13,15 @@ public record MethodMetadata : MemberMetadata public required ClassMetadata Class { get; init; } - public required TypeReference ReturnTypeReference { get; init; } + public required TypeInfo ReturnTypeInfo { get; init; } /// /// The concrete return type (only available for non-generic types). - /// For generic types, this will be null and ReturnTypeReference must be resolved at runtime. + /// For generic types, this will be null and ReturnTypeInfo must be resolved at runtime. /// public Type? ReturnType { get; init; } - public required TypeReference TypeReference { get; init; } + public required TypeInfo TypeInfo { get; init; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors @@ -32,9 +32,9 @@ public record MethodMetadata : MemberMetadata protected override bool PrintMembers(StringBuilder stringBuilder) { - stringBuilder.Append($"ReturnTypeReference = {ReturnTypeReference.AssemblyQualifiedName ?? "GenericParameter"},"); + stringBuilder.Append($"ReturnTypeInfo = {ReturnTypeInfo},"); stringBuilder.Append($"GenericTypeCount = {GenericTypeCount},"); - stringBuilder.Append($"TypeReference = {TypeReference.AssemblyQualifiedName ?? "GenericParameter"},"); + stringBuilder.Append($"TypeInfo = {TypeInfo},"); stringBuilder.Append($"Name = {Name}"); return true; } @@ -51,7 +51,7 @@ public virtual bool Equals(MethodMetadata? other) return true; } - return base.Equals(other) && Parameters.SequenceEqual(other.Parameters) && GenericTypeCount == other.GenericTypeCount && Class.Equals(other.Class) && ReturnTypeReference.Equals(other.ReturnTypeReference) && TypeReference.Equals(other.TypeReference) && Type.Equals(other.Type); + return base.Equals(other) && Parameters.SequenceEqual(other.Parameters) && GenericTypeCount == other.GenericTypeCount && Class.Equals(other.Class) && ReturnTypeInfo.Equals(other.ReturnTypeInfo) && TypeInfo.Equals(other.TypeInfo) && Type.Equals(other.Type); } public override int GetHashCode() @@ -62,8 +62,8 @@ public override int GetHashCode() hashCode = (hashCode * 397) ^ Parameters.GetHashCode(); hashCode = (hashCode * 397) ^ GenericTypeCount; hashCode = (hashCode * 397) ^ Class.GetHashCode(); - hashCode = (hashCode * 397) ^ ReturnTypeReference.GetHashCode(); - hashCode = (hashCode * 397) ^ TypeReference.GetHashCode(); + hashCode = (hashCode * 397) ^ ReturnTypeInfo.GetHashCode(); + hashCode = (hashCode * 397) ^ TypeInfo.GetHashCode(); hashCode = (hashCode * 397) ^ Type.GetHashCode(); return hashCode; } diff --git a/TUnit.Core/Models/TestModels/ParameterMetadata.cs b/TUnit.Core/Models/TestModels/ParameterMetadata.cs index 790c84ef89..8e4bc538e6 100644 --- a/TUnit.Core/Models/TestModels/ParameterMetadata.cs +++ b/TUnit.Core/Models/TestModels/ParameterMetadata.cs @@ -26,7 +26,7 @@ public record ParameterMetadata([DynamicallyAccessedMembers(DynamicallyAccessedM | DynamicallyAccessedMemberTypes.PublicProperties)] public override Type Type { get; init; } = Type; - public required TypeReference TypeReference { get; init; } + public required TypeInfo TypeInfo { get; init; } public required ParameterInfo ReflectionInfo { get; set; } public bool IsParams => CachedIsParams ?? ReflectionInfo.IsDefined(typeof(ParamArrayAttribute), false); public bool IsOptional => CachedIsOptional ?? ReflectionInfo.IsOptional; diff --git a/TUnit.Core/Models/TestSessionContext.cs b/TUnit.Core/Models/TestSessionContext.cs index 01d838115a..88d573b6a3 100644 --- a/TUnit.Core/Models/TestSessionContext.cs +++ b/TUnit.Core/Models/TestSessionContext.cs @@ -25,8 +25,8 @@ internal set { Type = typeof(object), Name = "StaticPropertyInitialization", - TypeReference = TypeReference.CreateConcrete(typeof(object).AssemblyQualifiedName ?? "System.Object"), - ReturnTypeReference = TypeReference.CreateConcrete(typeof(void).AssemblyQualifiedName ?? "System.Void"), + TypeInfo = new ConcreteType(typeof(object)), + ReturnTypeInfo = new ConcreteType(typeof(void)), Parameters = Array.Empty(), GenericTypeCount = 0, Class = new ClassMetadata @@ -34,7 +34,7 @@ internal set Name = "GlobalStaticPropertyInitializer", Type = typeof(object), Namespace = "TUnit.Core", - TypeReference = TypeReference.CreateConcrete(typeof(object).AssemblyQualifiedName ?? "System.Object"), + TypeInfo = new ConcreteType(typeof(object)), Assembly = AssemblyMetadata.GetOrAdd("TUnit.Core", () => new AssemblyMetadata { Name = "TUnit.Core" }), Properties = Array.Empty(), Parameters = Array.Empty(), diff --git a/TUnit.Core/PropertyInjection/ClassMetadataHelper.cs b/TUnit.Core/PropertyInjection/ClassMetadataHelper.cs index e43d50fa05..84ffcd00c5 100644 --- a/TUnit.Core/PropertyInjection/ClassMetadataHelper.cs +++ b/TUnit.Core/PropertyInjection/ClassMetadataHelper.cs @@ -32,14 +32,14 @@ public static ClassMetadata GetOrCreateClassMetadata( var constructorParameters = constructor?.GetParameters().Select((p, i) => new ParameterMetadata(p.ParameterType) { Name = p.Name ?? $"param{i}", - TypeReference = new TypeReference { AssemblyQualifiedName = p.ParameterType.AssemblyQualifiedName }, + TypeInfo = new ConcreteType(p.ParameterType), ReflectionInfo = p }).ToArray() ?? Array.Empty(); return new ClassMetadata { Type = type, - TypeReference = TypeReference.CreateConcrete(type.AssemblyQualifiedName ?? type.FullName ?? type.Name), + TypeInfo = new ConcreteType(type), Name = type.Name, Namespace = type.Namespace ?? string.Empty, Assembly = AssemblyMetadata.GetOrAdd( diff --git a/TUnit.Core/TypeInfo.cs b/TUnit.Core/TypeInfo.cs new file mode 100644 index 0000000000..94530d849d --- /dev/null +++ b/TUnit.Core/TypeInfo.cs @@ -0,0 +1,74 @@ +namespace TUnit.Core; + +/// +/// Represents type information that can be encoded in source-generated code. +/// Used to bridge compile-time type knowledge and runtime type resolution, +/// particularly for generic type parameters. +/// +public abstract record TypeInfo; + +/// +/// Represents a concrete type that can be referenced via typeof() at compile-time. +/// This is the most common case - used for all non-generic and closed generic types. +/// +/// The actual Type object. Never null. +public sealed record ConcreteType(Type Type) : TypeInfo +{ + public override string ToString() => Type.Name; +} + +/// +/// Represents a generic type parameter (e.g., T, TKey, TValue) that cannot be +/// a concrete Type at source generation time. These are resolved at runtime +/// when the actual type arguments are known. +/// +/// +/// The 0-based position of the generic parameter. +/// For MyClass<T, U>, T has position 0, U has position 1. +/// +/// +/// True if this is a method generic parameter (e.g., void Method<T>()), +/// false if it's a type generic parameter (e.g., class Foo<T>). +/// +/// +/// The name of the generic parameter (e.g., "T", "TKey"). +/// Used for debugging and error messages. Optional. +/// +public sealed record GenericParameter( + int Position, + bool IsMethodParameter, + string? Name = null +) : TypeInfo +{ + public override string ToString() => Name ?? $"T{Position}"; +} + +/// +/// Represents a constructed generic type where some type arguments may be +/// generic parameters (e.g., List<T>, Dictionary<string, T>). +/// +/// +/// The generic type definition (e.g., typeof(List<>), typeof(Dictionary<,>)). +/// Must be a generic type definition (Type.IsGenericTypeDefinition == true). +/// +/// +/// The type arguments. Can be a mix of ConcreteType and GenericParameter instances. +/// For List<T>, this would be [new GenericParameter(0, false, "T")]. +/// For Dictionary<string, T>, this would be [new ConcreteType(typeof(string)), new GenericParameter(0, false, "T")]. +/// +public sealed record ConstructedGeneric( + Type GenericDefinition, + TypeInfo[] TypeArguments +) : TypeInfo +{ + public override string ToString() + { + var name = GenericDefinition.Name; + var backtickIndex = name.IndexOf('`'); + if (backtickIndex > 0) + { + name = name.Substring(0, backtickIndex); + } + return $"{name}<{string.Join(", ", TypeArguments.Select(t => t.ToString()))}>"; + } +} diff --git a/TUnit.Core/TypeReference.cs b/TUnit.Core/TypeReference.cs deleted file mode 100644 index 309acb2d5e..0000000000 --- a/TUnit.Core/TypeReference.cs +++ /dev/null @@ -1,121 +0,0 @@ -namespace TUnit.Core; - -/// -/// Represents a type reference that can be resolved at runtime. -/// Used by source generators to represent types that may include generic parameters. -/// -public sealed class TypeReference -{ - /// - /// For concrete types and generic type definitions. - /// Example: "System.String, System.Private.CoreLib" or "System.Collections.Generic.List`1, System.Private.CoreLib" - /// - public string? AssemblyQualifiedName { get; set; } - - /// - /// True if this represents a generic parameter (e.g., T in MyClass<T>). - /// - public bool IsGenericParameter { get; set; } - - /// - /// The 0-based position of the generic parameter. - /// For MyClass<T, U>, T has position 0, U has position 1. - /// - public int GenericParameterPosition { get; set; } - - /// - /// True if this is a method generic parameter, false if it's a type generic parameter. - /// - public bool IsMethodGenericParameter { get; set; } - - /// - /// The name of the generic parameter (e.g., "T", "TKey"). - /// Used for debugging and error messages. - /// - public string? GenericParameterName { get; set; } - - /// - /// For constructed generic types (e.g., List<int>, Dictionary<string, T>). - /// Contains TypeReference instances for the generic arguments. - /// - public List GenericArguments { get; set; } = - [ - ]; - - /// - /// True if this represents an array type. - /// - public bool IsArray { get; set; } - - /// - /// The element type for arrays (e.g., int for int[], T for T[]). - /// - public TypeReference? ElementType { get; set; } - - /// - /// The rank of the array. 1 for [], 2 for [,], etc. - /// - public int ArrayRank { get; set; } = 1; - - /// - /// True if this represents a pointer type (e.g., int*). - /// - public bool IsPointer { get; set; } - - /// - /// True if this represents a by-reference type (e.g., ref int). - /// - public bool IsByRef { get; set; } - - /// - /// Creates a TypeReference for a concrete type. - /// - public static TypeReference CreateConcrete(string assemblyQualifiedName) - { - return new TypeReference - { - AssemblyQualifiedName = assemblyQualifiedName, - IsGenericParameter = false - }; - } - - /// - /// Creates a TypeReference for a generic parameter. - /// - public static TypeReference CreateGenericParameter(int position, bool isMethodParameter, string? name = null) - { - return new TypeReference - { - IsGenericParameter = true, - GenericParameterPosition = position, - IsMethodGenericParameter = isMethodParameter, - GenericParameterName = name - }; - } - - /// - /// Creates a TypeReference for an array type. - /// - public static TypeReference CreateArray(TypeReference elementType, int rank = 1) - { - return new TypeReference - { - IsArray = true, - ElementType = elementType, - ArrayRank = rank - }; - } - - /// - /// Creates a TypeReference for a constructed generic type. - /// - public static TypeReference CreateConstructedGeneric(string genericTypeDefinition, params TypeReference[] genericArguments) - { - var typeRef = new TypeReference - { - AssemblyQualifiedName = genericTypeDefinition - }; - typeRef.GenericArguments.AddRange(genericArguments); - return typeRef; - } -} diff --git a/TUnit.Core/TypeResolver.cs b/TUnit.Core/TypeResolver.cs deleted file mode 100644 index 16edd2612c..0000000000 --- a/TUnit.Core/TypeResolver.cs +++ /dev/null @@ -1,348 +0,0 @@ -using System.Collections.Concurrent; -using System.Reflection; - -namespace TUnit.Core; - -/// -/// AOT-compatible type resolver that works with source-generated type mappings. -/// This version eliminates all dynamic type creation and runtime type resolution. -/// -public sealed class TypeResolver -{ - private readonly ConcurrentDictionary _typeCache = new(); - private readonly Dictionary<(int position, bool isMethodParameter), Type> _genericParameterMap; - private readonly Type? _declaringType; - private readonly MethodInfo? _declaringMethod; - - public TypeResolver(Type? declaringType = null, MethodInfo? declaringMethod = null) - { - _declaringType = declaringType; - _declaringMethod = declaringMethod; - _genericParameterMap = BuildGenericParameterMap(declaringType, declaringMethod); - } - - public static TypeResolver FromTestInstance(object testInstance, MethodInfo? testMethod = null) - { - var testType = testInstance.GetType(); - return new TypeResolver(testType, testMethod); - } - - /// - /// Resolves TypeReference objects using AOT-safe mechanisms. - /// This method requires source-generated type mappings to work correctly in AOT scenarios. - /// - public Type Resolve(TypeReference typeReference) - { - if (typeReference == null) - { - throw new ArgumentNullException(nameof(typeReference)); - } - - // Handle generic parameters using the pre-built map - if (typeReference.IsGenericParameter) - { - var key = (typeReference.GenericParameterPosition, typeReference.IsMethodGenericParameter); - if (_genericParameterMap.TryGetValue(key, out var resolvedType)) - { - return resolvedType; - } - - throw new InvalidOperationException( - $"Cannot resolve generic parameter at position {typeReference.GenericParameterPosition} " + - $"(isMethod: {typeReference.IsMethodGenericParameter}). " + - $"Available parameters: {string.Join(", ", _genericParameterMap.Keys)}"); - } - - // Handle array types by delegating to element type resolution - if (typeReference.IsArray) - { - if (typeReference.ElementType == null) - { - throw new InvalidOperationException("Array TypeReference must have ElementType"); - } - - var elementType = Resolve(typeReference.ElementType); - return CreateArrayType(elementType, typeReference.ArrayRank); - } - - // Handle pointer types - if (typeReference.IsPointer) - { - if (typeReference.ElementType == null) - { - throw new InvalidOperationException("Pointer TypeReference must have ElementType"); - } - - var elementType = Resolve(typeReference.ElementType); - return CreatePointerType(elementType); - } - - // Handle ByRef types - if (typeReference.IsByRef) - { - if (typeReference.ElementType == null) - { - throw new InvalidOperationException("ByRef TypeReference must have ElementType"); - } - - var elementType = Resolve(typeReference.ElementType); - return CreateByRefType(elementType); - } - - // Handle concrete types - if (string.IsNullOrEmpty(typeReference.AssemblyQualifiedName)) - { - throw new InvalidOperationException("Non-generic TypeReference must have AssemblyQualifiedName"); - } - - // Check cache first - if (_typeCache.TryGetValue(typeReference.AssemblyQualifiedName!, out var cachedType)) - { - return ApplyGenericArguments(cachedType, typeReference); - } - - // In AOT mode, we cannot use Type.GetType() safely - // Types must be provided through source-generated registrations - var type = TypeRegistry.GetRegisteredType(typeReference.AssemblyQualifiedName!); - if (type == null) - { - throw new InvalidOperationException( - $"Type not registered for AOT compilation: {typeReference.AssemblyQualifiedName}. " + - "Ensure type is registered in source-generated TypeRegistry."); - } - - _typeCache[typeReference.AssemblyQualifiedName!] = type; - return ApplyGenericArguments(type, typeReference); - } - - public Type[] ResolveMany(IEnumerable typeReferences) - { - return typeReferences.Select(Resolve).ToArray(); - } - - /// - /// Applies generic arguments to a type using AOT-safe mechanisms. - /// This method requires source-generated generic type mappings. - /// - private Type ApplyGenericArguments(Type type, TypeReference typeReference) - { - if (typeReference.GenericArguments.Count == 0) - { - return type; - } - - var genericArgs = typeReference.GenericArguments - .Select(Resolve) - .ToArray(); - - if (type.IsGenericTypeDefinition) - { - // In AOT mode, we need to use pre-constructed generic types - // rather than MakeGenericType which is not AOT-compatible - var constructedType = TypeRegistry.GetConstructedGenericType(type, genericArgs); - if (constructedType != null) - { - return constructedType; - } - - throw new InvalidOperationException( - $"Constructed generic type not registered for AOT compilation: {type.Name}<{string.Join(",", genericArgs.Select(t => t.Name))}>. " + - "Ensure all generic type combinations are registered in source-generated TypeRegistry."); - } - - // If it's already a constructed generic type, return as-is - if (type.IsConstructedGenericType) - { - return type; - } - - return type; - } - - /// - /// Creates array types using AOT-safe mechanisms. - /// - private static Type CreateArrayType(Type elementType, int rank) - { - // For AOT compatibility, we need to use pre-registered array types - var arrayType = TypeRegistry.GetArrayType(elementType, rank); - if (arrayType != null) - { - return arrayType; - } - - throw new InvalidOperationException( - $"Array type not registered for AOT compilation: {elementType.Name}[{new string(',', rank - 1)}]. " + - "Ensure array type is registered in source-generated TypeRegistry."); - } - - /// - /// Creates pointer types using AOT-safe mechanisms. - /// - private static Type CreatePointerType(Type elementType) - { - var pointerType = TypeRegistry.GetPointerType(elementType); - if (pointerType != null) - { - return pointerType; - } - - throw new InvalidOperationException( - $"Pointer type not registered for AOT compilation: {elementType.Name}*. " + - "Ensure pointer type is registered in source-generated TypeRegistry."); - } - - /// - /// Creates ByRef types using AOT-safe mechanisms. - /// - private static Type CreateByRefType(Type elementType) - { - var byRefType = TypeRegistry.GetByRefType(elementType); - if (byRefType != null) - { - return byRefType; - } - - throw new InvalidOperationException( - $"ByRef type not registered for AOT compilation: {elementType.Name}&. " + - "Ensure ByRef type is registered in source-generated TypeRegistry."); - } - - private static Dictionary<(int position, bool isMethodParameter), Type> BuildGenericParameterMap( - Type? declaringType, - MethodInfo? declaringMethod) - { - var map = new Dictionary<(int position, bool isMethodParameter), Type>(); - - if (declaringType?.IsGenericType == true) - { - var genericArgs = declaringType.GetGenericArguments(); - for (var i = 0; i < genericArgs.Length; i++) - { - map[(i, false)] = genericArgs[i]; - } - } - - if (declaringMethod?.IsGenericMethodDefinition == true) - { - var genericArgs = declaringMethod.GetGenericArguments(); - for (var i = 0; i < genericArgs.Length; i++) - { - map[(i, true)] = genericArgs[i]; - } - } - - return map; - } - - public static TypeResolver CreateSimple() - { - return new TypeResolver(); - } -} - -/// -/// AOT-compatible type registry that provides pre-registered types. -/// This class is populated by source generators at compile time. -/// -public static class TypeRegistry -{ - private static readonly ConcurrentDictionary _registeredTypes = new(); - private static readonly ConcurrentDictionary<(Type genericDefinition, Type[] arguments), Type> _constructedGenericTypes = new(); - private static readonly ConcurrentDictionary<(Type elementType, int rank), Type> _arrayTypes = new(); - private static readonly ConcurrentDictionary _pointerTypes = new(); - private static readonly ConcurrentDictionary _byRefTypes = new(); - - /// - /// Registers a type for AOT-safe resolution. - /// This method is called by source generators. - /// - public static void RegisterType(string assemblyQualifiedName, Type type) - { - _registeredTypes.TryAdd(assemblyQualifiedName, type); - } - - /// - /// Registers a constructed generic type for AOT-safe resolution. - /// This method is called by source generators. - /// - public static void RegisterConstructedGenericType(Type genericDefinition, Type[] genericArguments, Type constructedType) - { - _constructedGenericTypes.TryAdd((genericDefinition, genericArguments), constructedType); - } - - /// - /// Registers an array type for AOT-safe resolution. - /// This method is called by source generators. - /// - public static void RegisterArrayType(Type elementType, int rank, Type arrayType) - { - _arrayTypes.TryAdd((elementType, rank), arrayType); - } - - /// - /// Registers a pointer type for AOT-safe resolution. - /// This method is called by source generators. - /// - public static void RegisterPointerType(Type elementType, Type pointerType) - { - _pointerTypes.TryAdd(elementType, pointerType); - } - - /// - /// Registers a ByRef type for AOT-safe resolution. - /// This method is called by source generators. - /// - public static void RegisterByRefType(Type elementType, Type byRefType) - { - _byRefTypes.TryAdd(elementType, byRefType); - } - - /// - /// Gets a registered type by its assembly qualified name. - /// - internal static Type? GetRegisteredType(string assemblyQualifiedName) - { - return _registeredTypes.TryGetValue(assemblyQualifiedName, out var type) ? type : null; - } - - /// - /// Gets a constructed generic type for the given definition and arguments. - /// - internal static Type? GetConstructedGenericType(Type genericDefinition, Type[] genericArguments) - { - return _constructedGenericTypes.TryGetValue((genericDefinition, genericArguments), out var type) ? type : null; - } - - /// - /// Gets an array type for the given element type and rank. - /// - internal static Type? GetArrayType(Type elementType, int rank) - { - return _arrayTypes.TryGetValue((elementType, rank), out var type) ? type : null; - } - - /// - /// Gets a pointer type for the given element type. - /// - internal static Type? GetPointerType(Type elementType) - { - return _pointerTypes.TryGetValue(elementType, out var type) ? type : null; - } - - /// - /// Gets a ByRef type for the given element type. - /// - internal static Type? GetByRefType(Type elementType) - { - return _byRefTypes.TryGetValue(elementType, out var type) ? type : null; - } - - /// - /// Gets all registered types for diagnostic purposes. - /// - public static IReadOnlyDictionary GetAllRegisteredTypes() - { - return _registeredTypes; - } -} \ No newline at end of file diff --git a/TUnit.Engine/Building/Collectors/AotTestDataCollector.cs b/TUnit.Engine/Building/Collectors/AotTestDataCollector.cs index 31788c3214..cfabb3b16b 100644 --- a/TUnit.Engine/Building/Collectors/AotTestDataCollector.cs +++ b/TUnit.Engine/Building/Collectors/AotTestDataCollector.cs @@ -284,7 +284,7 @@ private static MethodMetadata CreateDummyMethodMetadata(Type type, string method { Name = type.Name, Type = type, - TypeReference = TypeReference.CreateConcrete(type.AssemblyQualifiedName!), + TypeInfo = new ConcreteType(type), Namespace = type.Namespace ?? string.Empty, Assembly = new AssemblyMetadata { @@ -296,9 +296,9 @@ private static MethodMetadata CreateDummyMethodMetadata(Type type, string method }, Parameters = [], GenericTypeCount = 0, - ReturnTypeReference = TypeReference.CreateConcrete(typeof(void).AssemblyQualifiedName!), + ReturnTypeInfo = new ConcreteType(typeof(void)), ReturnType = typeof(void), - TypeReference = TypeReference.CreateConcrete(type.AssemblyQualifiedName!) + TypeInfo = new ConcreteType(type) }; } diff --git a/TUnit.Engine/Building/ReflectionMetadataBuilder.cs b/TUnit.Engine/Building/ReflectionMetadataBuilder.cs index 7bc5ac0edf..bf869eba2c 100644 --- a/TUnit.Engine/Building/ReflectionMetadataBuilder.cs +++ b/TUnit.Engine/Building/ReflectionMetadataBuilder.cs @@ -24,20 +24,20 @@ public static MethodMetadata CreateMethodMetadata( { Name = method.Name, Type = type, - TypeReference = CreateTypeReference(type), + TypeInfo = CreateTypeInfo(type), Class = CreateClassMetadata(type), Parameters = method.GetParameters() .Select((p, i) => CreateParameterMetadata(p.ParameterType, p.Name ?? "unnamed", i, p)) .ToArray(), GenericTypeCount = method.IsGenericMethodDefinition ? method.GetGenericArguments().Length : 0, - ReturnTypeReference = CreateTypeReference(method.ReturnType), + ReturnTypeInfo = CreateTypeInfo(method.ReturnType), ReturnType = method.ReturnType }; } - private static TypeReference CreateTypeReference(Type type) + private static TypeInfo CreateTypeInfo(Type type) { - return TypeReference.CreateConcrete(type.AssemblyQualifiedName ?? type.FullName ?? type.Name); + return new ConcreteType(type); } #if NET6_0_OR_GREATER @@ -51,7 +51,7 @@ private static ParameterMetadata CreateParameterMetadata( return new ParameterMetadata(parameterType) { Name = name ?? $"param{index}", - TypeReference = CreateTypeReference(parameterType), + TypeInfo = CreateTypeInfo(parameterType), ReflectionInfo = reflectionInfo, Type = parameterType, IsNullable = parameterType.IsGenericType && parameterType.GetGenericTypeDefinition() == typeof(Nullable<>) @@ -82,7 +82,7 @@ private static ClassMetadata CreateClassMetadata([DynamicallyAccessedMembers(Dyn { Name = type.Name, Type = type, - TypeReference = CreateTypeReference(type), + TypeInfo = CreateTypeInfo(type), Namespace = type.Namespace ?? string.Empty, Assembly = AssemblyMetadata.GetOrAdd(type.Assembly.GetName().FullName, () => new AssemblyMetadata { diff --git a/TUnit.Engine/Building/TestBuilder.cs b/TUnit.Engine/Building/TestBuilder.cs index 28dcd603d1..f58d8d5897 100644 --- a/TUnit.Engine/Building/TestBuilder.cs +++ b/TUnit.Engine/Building/TestBuilder.cs @@ -427,9 +427,9 @@ private static Type[] TryInferClassGenericsFromMethodData(TestMetadata metadata, // Check if this corresponds to a class generic parameter // by looking at the method metadata - if (methodParam.TypeReference is { IsGenericParameter: true, IsMethodGenericParameter: false }) + if (methodParam.TypeInfo is GenericParameter { IsMethodParameter: false } gp) { - var genericParamName = methodParam.TypeReference.GenericParameterName; + var genericParamName = gp.Name; // Find the matching generic parameter in the class var matchingClassParam = genericParameters.FirstOrDefault(p => p.Name == genericParamName); if (matchingClassParam != null) @@ -577,9 +577,9 @@ private static Type[] TryInferClassGenericsFromDataSources(TestMetadata metadata if (paramType == typeof(object)) // Placeholder for generic parameter { var methodParam = metadata.MethodMetadata.Parameters[i]; - if (methodParam.TypeReference is { IsGenericParameter: true, IsMethodGenericParameter: false }) + if (methodParam.TypeInfo is GenericParameter { IsMethodParameter: false } gp2) { - var genericParamName = methodParam.TypeReference.GenericParameterName; + var genericParamName = gp2.Name; var matchingClassParam = genericParameters.FirstOrDefault(p => p.Name == genericParamName); if (matchingClassParam != null) { @@ -1014,30 +1014,22 @@ private static bool IsDataCompatibleWithExpectedTypes(TestMetadata metadata, obj private static Type? GetExpectedTypeForParameter(ParameterMetadata param, Type[] genericTypeArgs) { - if (param.TypeReference == null) - { - return null; - } - // If it's a direct generic parameter (e.g., T) - if (param.TypeReference.IsGenericParameter) + if (param.TypeInfo is GenericParameter gp) { - var position = param.TypeReference.GenericParameterPosition; + var position = gp.Position; if (position < genericTypeArgs.Length) { return genericTypeArgs[position]; } } - // For constructed generic types, we'll just return the element type for now - // and let IsTypeCompatible handle the full type checking - if (param.TypeReference.GenericArguments?.Count > 0) + // For constructed generic types, check first type argument + if (param.TypeInfo is ConstructedGeneric cg && cg.TypeArguments.Length > 0) { - // For now, check the first type argument - var firstTypeArg = param.TypeReference.GenericArguments[0]; - if (firstTypeArg.IsGenericParameter) + if (cg.TypeArguments[0] is GenericParameter firstGp) { - var position = firstTypeArg.GenericParameterPosition; + var position = firstGp.Position; if (position < genericTypeArgs.Length) { // Return the element type - we'll check compatibility in IsTypeCompatible diff --git a/TUnit.Engine/Discovery/ReflectionHookDiscoveryService.cs b/TUnit.Engine/Discovery/ReflectionHookDiscoveryService.cs index 69b9b0e389..04011559b3 100644 --- a/TUnit.Engine/Discovery/ReflectionHookDiscoveryService.cs +++ b/TUnit.Engine/Discovery/ReflectionHookDiscoveryService.cs @@ -834,7 +834,7 @@ private static MethodMetadata CreateMethodMetadata( { Name = type.Name, Type = type, - TypeReference = TypeReference.CreateConcrete(type.AssemblyQualifiedName!), + TypeInfo = new ConcreteType(type), Namespace = type.Namespace ?? string.Empty, Assembly = new AssemblyMetadata { @@ -848,13 +848,13 @@ private static MethodMetadata CreateMethodMetadata( { Name = p.Name ?? string.Empty, Type = p.ParameterType, - TypeReference = TypeReference.CreateConcrete(p.ParameterType.AssemblyQualifiedName!), + TypeInfo = new ConcreteType(p.ParameterType), ReflectionInfo = p }).ToArray(), GenericTypeCount = 0, - ReturnTypeReference = TypeReference.CreateConcrete(method.ReturnType.AssemblyQualifiedName!), + ReturnTypeInfo = new ConcreteType(method.ReturnType), ReturnType = method.ReturnType, - TypeReference = TypeReference.CreateConcrete(type.AssemblyQualifiedName!) + TypeInfo = new ConcreteType(type) }; } diff --git a/TUnit.Engine/Discovery/ReflectionTestDataCollector.cs b/TUnit.Engine/Discovery/ReflectionTestDataCollector.cs index b61e758d35..6c66a840bc 100644 --- a/TUnit.Engine/Discovery/ReflectionTestDataCollector.cs +++ b/TUnit.Engine/Discovery/ReflectionTestDataCollector.cs @@ -1188,7 +1188,7 @@ private static MethodMetadata CreateDummyMethodMetadata( { Name = type.Name, Type = type, - TypeReference = TypeReference.CreateConcrete(type.AssemblyQualifiedName!), + TypeInfo = new ConcreteType(type), Namespace = type.Namespace ?? string.Empty, Assembly = new AssemblyMetadata { @@ -1206,9 +1206,9 @@ private static MethodMetadata CreateDummyMethodMetadata( [ ], GenericTypeCount = 0, - ReturnTypeReference = TypeReference.CreateConcrete(typeof(void).AssemblyQualifiedName!), + ReturnTypeInfo = new ConcreteType(typeof(void)), ReturnType = typeof(void), - TypeReference = TypeReference.CreateConcrete(type.AssemblyQualifiedName!) + TypeInfo = new ConcreteType(type) }; } 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 8c4b77aa51..b8d9793922 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 @@ -392,11 +392,24 @@ namespace public int TestConstructorIndex { get; init; } [.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] public override required Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } public virtual bool Equals(.ClassMetadata? other) { } public override int GetHashCode() { } public static .ClassMetadata GetOrAdd(string name, <.ClassMetadata> factory) { } } + public sealed class ConcreteType : .TypeInfo, <.ConcreteType> + { + public ConcreteType( Type) { } + public Type { get; init; } + public override string ToString() { } + } + public sealed class ConstructedGeneric : .TypeInfo, <.ConstructedGeneric> + { + public ConstructedGeneric( GenericDefinition, .TypeInfo[] TypeArguments) { } + public GenericDefinition { get; init; } + public .TypeInfo[] TypeArguments { get; init; } + public override string ToString() { } + } public abstract class Context : , . { public .TextWriter ErrorOutputWriter { get; } @@ -770,6 +783,14 @@ namespace public string[] ParameterNames { get; init; } public int[] ParameterPositions { get; init; } } + public sealed class GenericParameter : .TypeInfo, <.GenericParameter> + { + public GenericParameter(int Position, bool IsMethodParameter, string? Name = null) { } + public bool IsMethodParameter { get; init; } + public string? Name { get; init; } + public int Position { get; init; } + public override string ToString() { } + } public sealed class GenericParameterConstraints { public GenericParameterConstraints() { } @@ -975,10 +996,10 @@ namespace public required int GenericTypeCount { get; init; } public required .ParameterMetadata[] Parameters { get; init; } public ? ReturnType { get; init; } - public required .TypeReference ReturnTypeReference { get; init; } + public required .TypeInfo ReturnTypeInfo { get; init; } [.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] public override required Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } public virtual bool Equals(.MethodMetadata? other) { } public override int GetHashCode() { } protected override bool PrintMembers(.StringBuilder stringBuilder) { } @@ -1048,7 +1069,7 @@ namespace public required .ParameterInfo ReflectionInfo { get; set; } [.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] public override Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } } [.DebuggerDisplay("{Type} {Name}")] public class ParameterMetadata<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] T> : .ParameterMetadata, <.ParameterMetadata> @@ -1544,41 +1565,9 @@ namespace public bool Equals([]? x, []? y) { } public int GetHashCode([] obj) { } } - public sealed class TypeReference - { - public TypeReference() { } - public int ArrayRank { get; set; } - public string? AssemblyQualifiedName { get; set; } - public .TypeReference? ElementType { get; set; } - public .<.TypeReference> GenericArguments { get; set; } - public string? GenericParameterName { get; set; } - public int GenericParameterPosition { get; set; } - public bool IsArray { get; set; } - public bool IsByRef { get; set; } - public bool IsGenericParameter { get; set; } - public bool IsMethodGenericParameter { get; set; } - public bool IsPointer { get; set; } - public static .TypeReference CreateArray(.TypeReference elementType, int rank = 1) { } - public static .TypeReference CreateConcrete(string assemblyQualifiedName) { } - public static .TypeReference CreateConstructedGeneric(string genericTypeDefinition, params .TypeReference[] genericArguments) { } - public static .TypeReference CreateGenericParameter(int position, bool isMethodParameter, string? name = null) { } - } - public static class TypeRegistry - { - public static . GetAllRegisteredTypes() { } - public static void RegisterArrayType( elementType, int rank, arrayType) { } - public static void RegisterByRefType( elementType, byRefType) { } - public static void RegisterConstructedGenericType( genericDefinition, [] genericArguments, constructedType) { } - public static void RegisterPointerType( elementType, pointerType) { } - public static void RegisterType(string assemblyQualifiedName, type) { } - } - public sealed class TypeResolver - { - public TypeResolver(? declaringType = null, .MethodInfo? declaringMethod = null) { } - public Resolve(.TypeReference typeReference) { } - public [] ResolveMany(.<.TypeReference> typeReferences) { } - public static .TypeResolver CreateSimple() { } - public static .TypeResolver FromTestInstance(object testInstance, .MethodInfo? testMethod = null) { } + public abstract class TypeInfo : <.TypeInfo> + { + protected TypeInfo() { } } public abstract class TypedDataSourceAttribute : , .IDataSourceAttribute, .ITypedDataSourceAttribute { 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 dfb764c7d3..4c0050ddb7 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 @@ -392,11 +392,24 @@ namespace public int TestConstructorIndex { get; init; } [.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] public override required Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } public virtual bool Equals(.ClassMetadata? other) { } public override int GetHashCode() { } public static .ClassMetadata GetOrAdd(string name, <.ClassMetadata> factory) { } } + public sealed class ConcreteType : .TypeInfo, <.ConcreteType> + { + public ConcreteType( Type) { } + public Type { get; init; } + public override string ToString() { } + } + public sealed class ConstructedGeneric : .TypeInfo, <.ConstructedGeneric> + { + public ConstructedGeneric( GenericDefinition, .TypeInfo[] TypeArguments) { } + public GenericDefinition { get; init; } + public .TypeInfo[] TypeArguments { get; init; } + public override string ToString() { } + } public abstract class Context : , . { public .TextWriter ErrorOutputWriter { get; } @@ -770,6 +783,14 @@ namespace public string[] ParameterNames { get; init; } public int[] ParameterPositions { get; init; } } + public sealed class GenericParameter : .TypeInfo, <.GenericParameter> + { + public GenericParameter(int Position, bool IsMethodParameter, string? Name = null) { } + public bool IsMethodParameter { get; init; } + public string? Name { get; init; } + public int Position { get; init; } + public override string ToString() { } + } public sealed class GenericParameterConstraints { public GenericParameterConstraints() { } @@ -975,10 +996,10 @@ namespace public required int GenericTypeCount { get; init; } public required .ParameterMetadata[] Parameters { get; init; } public ? ReturnType { get; init; } - public required .TypeReference ReturnTypeReference { get; init; } + public required .TypeInfo ReturnTypeInfo { get; init; } [.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] public override required Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } public virtual bool Equals(.MethodMetadata? other) { } public override int GetHashCode() { } protected override bool PrintMembers(.StringBuilder stringBuilder) { } @@ -1048,7 +1069,7 @@ namespace public required .ParameterInfo ReflectionInfo { get; set; } [.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] public override Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } } [.DebuggerDisplay("{Type} {Name}")] public class ParameterMetadata<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] T> : .ParameterMetadata, <.ParameterMetadata> @@ -1544,41 +1565,9 @@ namespace public bool Equals([]? x, []? y) { } public int GetHashCode([] obj) { } } - public sealed class TypeReference - { - public TypeReference() { } - public int ArrayRank { get; set; } - public string? AssemblyQualifiedName { get; set; } - public .TypeReference? ElementType { get; set; } - public .<.TypeReference> GenericArguments { get; set; } - public string? GenericParameterName { get; set; } - public int GenericParameterPosition { get; set; } - public bool IsArray { get; set; } - public bool IsByRef { get; set; } - public bool IsGenericParameter { get; set; } - public bool IsMethodGenericParameter { get; set; } - public bool IsPointer { get; set; } - public static .TypeReference CreateArray(.TypeReference elementType, int rank = 1) { } - public static .TypeReference CreateConcrete(string assemblyQualifiedName) { } - public static .TypeReference CreateConstructedGeneric(string genericTypeDefinition, params .TypeReference[] genericArguments) { } - public static .TypeReference CreateGenericParameter(int position, bool isMethodParameter, string? name = null) { } - } - public static class TypeRegistry - { - public static . GetAllRegisteredTypes() { } - public static void RegisterArrayType( elementType, int rank, arrayType) { } - public static void RegisterByRefType( elementType, byRefType) { } - public static void RegisterConstructedGenericType( genericDefinition, [] genericArguments, constructedType) { } - public static void RegisterPointerType( elementType, pointerType) { } - public static void RegisterType(string assemblyQualifiedName, type) { } - } - public sealed class TypeResolver - { - public TypeResolver(? declaringType = null, .MethodInfo? declaringMethod = null) { } - public Resolve(.TypeReference typeReference) { } - public [] ResolveMany(.<.TypeReference> typeReferences) { } - public static .TypeResolver CreateSimple() { } - public static .TypeResolver FromTestInstance(object testInstance, .MethodInfo? testMethod = null) { } + public abstract class TypeInfo : <.TypeInfo> + { + protected TypeInfo() { } } public abstract class TypedDataSourceAttribute : , .IDataSourceAttribute, .ITypedDataSourceAttribute { 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 a098ac965d..1046027655 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 @@ -392,11 +392,24 @@ namespace public int TestConstructorIndex { get; init; } [.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] public override required Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } public virtual bool Equals(.ClassMetadata? other) { } public override int GetHashCode() { } public static .ClassMetadata GetOrAdd(string name, <.ClassMetadata> factory) { } } + public sealed class ConcreteType : .TypeInfo, <.ConcreteType> + { + public ConcreteType( Type) { } + public Type { get; init; } + public override string ToString() { } + } + public sealed class ConstructedGeneric : .TypeInfo, <.ConstructedGeneric> + { + public ConstructedGeneric( GenericDefinition, .TypeInfo[] TypeArguments) { } + public GenericDefinition { get; init; } + public .TypeInfo[] TypeArguments { get; init; } + public override string ToString() { } + } public abstract class Context : , . { public .TextWriter ErrorOutputWriter { get; } @@ -770,6 +783,14 @@ namespace public string[] ParameterNames { get; init; } public int[] ParameterPositions { get; init; } } + public sealed class GenericParameter : .TypeInfo, <.GenericParameter> + { + public GenericParameter(int Position, bool IsMethodParameter, string? Name = null) { } + public bool IsMethodParameter { get; init; } + public string? Name { get; init; } + public int Position { get; init; } + public override string ToString() { } + } public sealed class GenericParameterConstraints { public GenericParameterConstraints() { } @@ -975,10 +996,10 @@ namespace public required int GenericTypeCount { get; init; } public required .ParameterMetadata[] Parameters { get; init; } public ? ReturnType { get; init; } - public required .TypeReference ReturnTypeReference { get; init; } + public required .TypeInfo ReturnTypeInfo { get; init; } [.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] public override required Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } public virtual bool Equals(.MethodMetadata? other) { } public override int GetHashCode() { } protected override bool PrintMembers(.StringBuilder stringBuilder) { } @@ -1048,7 +1069,7 @@ namespace public required .ParameterInfo ReflectionInfo { get; set; } [.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] public override Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } } [.DebuggerDisplay("{Type} {Name}")] public class ParameterMetadata<[.(..None | ..PublicParameterlessConstructor | ..PublicConstructors | ..NonPublicConstructors | ..PublicMethods | ..NonPublicMethods | ..PublicProperties)] T> : .ParameterMetadata, <.ParameterMetadata> @@ -1544,41 +1565,9 @@ namespace public bool Equals([]? x, []? y) { } public int GetHashCode([] obj) { } } - public sealed class TypeReference - { - public TypeReference() { } - public int ArrayRank { get; set; } - public string? AssemblyQualifiedName { get; set; } - public .TypeReference? ElementType { get; set; } - public .<.TypeReference> GenericArguments { get; set; } - public string? GenericParameterName { get; set; } - public int GenericParameterPosition { get; set; } - public bool IsArray { get; set; } - public bool IsByRef { get; set; } - public bool IsGenericParameter { get; set; } - public bool IsMethodGenericParameter { get; set; } - public bool IsPointer { get; set; } - public static .TypeReference CreateArray(.TypeReference elementType, int rank = 1) { } - public static .TypeReference CreateConcrete(string assemblyQualifiedName) { } - public static .TypeReference CreateConstructedGeneric(string genericTypeDefinition, params .TypeReference[] genericArguments) { } - public static .TypeReference CreateGenericParameter(int position, bool isMethodParameter, string? name = null) { } - } - public static class TypeRegistry - { - public static . GetAllRegisteredTypes() { } - public static void RegisterArrayType( elementType, int rank, arrayType) { } - public static void RegisterByRefType( elementType, byRefType) { } - public static void RegisterConstructedGenericType( genericDefinition, [] genericArguments, constructedType) { } - public static void RegisterPointerType( elementType, pointerType) { } - public static void RegisterType(string assemblyQualifiedName, type) { } - } - public sealed class TypeResolver - { - public TypeResolver(? declaringType = null, .MethodInfo? declaringMethod = null) { } - public Resolve(.TypeReference typeReference) { } - public [] ResolveMany(.<.TypeReference> typeReferences) { } - public static .TypeResolver CreateSimple() { } - public static .TypeResolver FromTestInstance(object testInstance, .MethodInfo? testMethod = null) { } + public abstract class TypeInfo : <.TypeInfo> + { + protected TypeInfo() { } } public abstract class TypedDataSourceAttribute : , .IDataSourceAttribute, .ITypedDataSourceAttribute { 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 e054e1fa10..5cc7d73e45 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 @@ -339,11 +339,24 @@ namespace public required .PropertyMetadata[] Properties { get; init; } public int TestConstructorIndex { get; init; } public override required Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } public virtual bool Equals(.ClassMetadata? other) { } public override int GetHashCode() { } public static .ClassMetadata GetOrAdd(string name, <.ClassMetadata> factory) { } } + public sealed class ConcreteType : .TypeInfo, <.ConcreteType> + { + public ConcreteType( Type) { } + public Type { get; init; } + public override string ToString() { } + } + public sealed class ConstructedGeneric : .TypeInfo, <.ConstructedGeneric> + { + public ConstructedGeneric( GenericDefinition, .TypeInfo[] TypeArguments) { } + public GenericDefinition { get; init; } + public .TypeInfo[] TypeArguments { get; init; } + public override string ToString() { } + } public abstract class Context : , . { public .TextWriter ErrorOutputWriter { get; } @@ -706,6 +719,14 @@ namespace public string[] ParameterNames { get; init; } public int[] ParameterPositions { get; init; } } + public sealed class GenericParameter : .TypeInfo, <.GenericParameter> + { + public GenericParameter(int Position, bool IsMethodParameter, string? Name = null) { } + public bool IsMethodParameter { get; init; } + public string? Name { get; init; } + public int Position { get; init; } + public override string ToString() { } + } public sealed class GenericParameterConstraints { public GenericParameterConstraints() { } @@ -893,9 +914,9 @@ namespace public required int GenericTypeCount { get; init; } public required .ParameterMetadata[] Parameters { get; init; } public ? ReturnType { get; init; } - public required .TypeReference ReturnTypeReference { get; init; } + public required .TypeInfo ReturnTypeInfo { get; init; } public override required Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } public virtual bool Equals(.MethodMetadata? other) { } public override int GetHashCode() { } protected override bool PrintMembers(.StringBuilder stringBuilder) { } @@ -963,7 +984,7 @@ namespace public int Position { get; init; } public required .ParameterInfo ReflectionInfo { get; set; } public override Type { get; init; } - public required .TypeReference TypeReference { get; init; } + public required .TypeInfo TypeInfo { get; init; } } [.DebuggerDisplay("{Type} {Name}")] public class ParameterMetadata : .ParameterMetadata, <.ParameterMetadata> @@ -1449,41 +1470,9 @@ namespace public bool Equals([]? x, []? y) { } public int GetHashCode([] obj) { } } - public sealed class TypeReference - { - public TypeReference() { } - public int ArrayRank { get; set; } - public string? AssemblyQualifiedName { get; set; } - public .TypeReference? ElementType { get; set; } - public .<.TypeReference> GenericArguments { get; set; } - public string? GenericParameterName { get; set; } - public int GenericParameterPosition { get; set; } - public bool IsArray { get; set; } - public bool IsByRef { get; set; } - public bool IsGenericParameter { get; set; } - public bool IsMethodGenericParameter { get; set; } - public bool IsPointer { get; set; } - public static .TypeReference CreateArray(.TypeReference elementType, int rank = 1) { } - public static .TypeReference CreateConcrete(string assemblyQualifiedName) { } - public static .TypeReference CreateConstructedGeneric(string genericTypeDefinition, params .TypeReference[] genericArguments) { } - public static .TypeReference CreateGenericParameter(int position, bool isMethodParameter, string? name = null) { } - } - public static class TypeRegistry - { - public static . GetAllRegisteredTypes() { } - public static void RegisterArrayType( elementType, int rank, arrayType) { } - public static void RegisterByRefType( elementType, byRefType) { } - public static void RegisterConstructedGenericType( genericDefinition, [] genericArguments, constructedType) { } - public static void RegisterPointerType( elementType, pointerType) { } - public static void RegisterType(string assemblyQualifiedName, type) { } - } - public sealed class TypeResolver - { - public TypeResolver(? declaringType = null, .MethodInfo? declaringMethod = null) { } - public Resolve(.TypeReference typeReference) { } - public [] ResolveMany(.<.TypeReference> typeReferences) { } - public static .TypeResolver CreateSimple() { } - public static .TypeResolver FromTestInstance(object testInstance, .MethodInfo? testMethod = null) { } + public abstract class TypeInfo : <.TypeInfo> + { + protected TypeInfo() { } } public abstract class TypedDataSourceAttribute : , .IDataSourceAttribute, .ITypedDataSourceAttribute { diff --git a/TUnit.UnitTests/ComplexGenericInheritanceTests.cs b/TUnit.UnitTests/ComplexGenericInheritanceTests.cs index e285f49a96..423551e843 100644 --- a/TUnit.UnitTests/ComplexGenericInheritanceTests.cs +++ b/TUnit.UnitTests/ComplexGenericInheritanceTests.cs @@ -17,16 +17,16 @@ private static TestMetadata CreateTestMetadata(string testId, string metho MethodMetadata = new MethodMetadata { Type = typeof(T), - TypeReference = TypeReference.CreateConcrete(typeof(T).AssemblyQualifiedName ?? typeof(T).FullName ?? typeof(T).Name), + TypeInfo = new ConcreteType(typeof(T)), Name = methodName, GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = TypeReference.CreateConcrete(typeof(void).AssemblyQualifiedName ?? "System.Void"), + ReturnTypeInfo = new ConcreteType(typeof(void)), Parameters = [], Class = new ClassMetadata { Type = typeof(T), - TypeReference = TypeReference.CreateConcrete(typeof(T).AssemblyQualifiedName ?? typeof(T).FullName ?? typeof(T).Name), + TypeInfo = new ConcreteType(typeof(T)), Name = typeof(T).Name, Namespace = typeof(T).Namespace ?? string.Empty, Assembly = new AssemblyMetadata diff --git a/TUnit.UnitTests/DependsOnTests.cs b/TUnit.UnitTests/DependsOnTests.cs index ec25a78992..f7926cdc80 100644 --- a/TUnit.UnitTests/DependsOnTests.cs +++ b/TUnit.UnitTests/DependsOnTests.cs @@ -9,11 +9,11 @@ private static TestMetadata CreateTestMetadata(string testId, string metho parameterTypes = parameterCount == 1 ? [typeof(string)] : [typeof(string), typeof(int)]; } - var parameters = parameterTypes?.Select((type, index) => + var parameters = parameterTypes?.Select((type, index) => new ParameterMetadata(type) { Name = $"param{index}", - TypeReference = TypeReference.CreateConcrete(type.AssemblyQualifiedName ?? type.FullName ?? type.Name), + TypeInfo = new ConcreteType(type), ReflectionInfo = null!, IsNullable = false }).ToArray() ?? []; @@ -31,16 +31,16 @@ private static TestMetadata CreateTestMetadata(string testId, string metho MethodMetadata = new MethodMetadata { Type = typeof(T), - TypeReference = TypeReference.CreateConcrete(typeof(T).AssemblyQualifiedName ?? typeof(T).FullName ?? typeof(T).Name), + TypeInfo = new ConcreteType(typeof(T)), Name = methodName, GenericTypeCount = 0, ReturnType = typeof(void), - ReturnTypeReference = TypeReference.CreateConcrete(typeof(void).AssemblyQualifiedName ?? "System.Void"), + ReturnTypeInfo = new ConcreteType(typeof(void)), Parameters = parameters, Class = new ClassMetadata { Type = typeof(T), - TypeReference = TypeReference.CreateConcrete(typeof(T).AssemblyQualifiedName ?? typeof(T).FullName ?? typeof(T).Name), + TypeInfo = new ConcreteType(typeof(T)), Name = typeof(T).Name, Namespace = typeof(T).Namespace ?? string.Empty, Assembly = new AssemblyMetadata