|
| 1 | +// <auto-generated/> |
| 2 | +#pragma warning disable |
| 3 | + |
| 4 | +#nullable enable |
| 5 | +namespace TUnit.Generated; |
| 6 | +[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute] |
| 7 | +[global::System.CodeDom.Compiler.GeneratedCode("TUnit", "VERSION_SCRUBBED")] |
| 8 | +internal static class TUnit_TestProject_Bugs__7499_GenericPropertyMetadataTests_T_MetadataGettersReadClosedInstance_TestSource |
| 9 | +{ |
| 10 | + private static readonly global::TUnit.Core.ClassMetadata __classMetadata = global::TUnit.Core.ClassMetadata.GetOrAdd("TestsBase`1:global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>", new global::TUnit.Core.ClassMetadata |
| 11 | + { |
| 12 | + Type = typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>), |
| 13 | + TypeInfo = new global::TUnit.Core.ConstructedGeneric(typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>), [new global::TUnit.Core.GenericParameter(0, false, "T")]), |
| 14 | + Name = "GenericPropertyMetadataTests", |
| 15 | + Namespace = "TUnit.TestProject.Bugs._7499", |
| 16 | + Assembly = global::TUnit.Core.AssemblyMetadata.GetOrAdd("TestsBase`1", "TestsBase`1"), |
| 17 | + Parameters = global::TUnit.Core.ParameterMetadataFactory.ForConstructor(typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>), true, new global::TUnit.Core.ParameterMetadata[] |
| 18 | + { |
| 19 | + global::TUnit.Core.ParameterMetadataFactory.Create(typeof(object), "value", new global::TUnit.Core.GenericParameter(0, false, "T"), false) |
| 20 | + }), |
| 21 | + Properties = new global::TUnit.Core.PropertyMetadata[] |
| 22 | + { |
| 23 | + new global::TUnit.Core.PropertyMetadata |
| 24 | + { |
| 25 | + ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>).GetProperty("Value"), |
| 26 | + Type = typeof(object), |
| 27 | + Name = "Value", |
| 28 | + IsStatic = false, |
| 29 | + IsNullable = false, |
| 30 | + Getter = global::TUnit.Core.PropertyMetadataFactory.CreateGenericGetter(typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>), "Value"), |
| 31 | + ClassMetadata = null!, |
| 32 | + ContainingTypeMetadata = null! |
| 33 | + }, |
| 34 | + new global::TUnit.Core.PropertyMetadata |
| 35 | + { |
| 36 | + ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>).GetProperty("Label", typeof(string)), |
| 37 | + Type = typeof(string), |
| 38 | + Name = "Label", |
| 39 | + IsStatic = false, |
| 40 | + IsNullable = false, |
| 41 | + Getter = global::TUnit.Core.PropertyMetadataFactory.CreateGenericGetter(typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>), "Label"), |
| 42 | + ClassMetadata = null!, |
| 43 | + ContainingTypeMetadata = null! |
| 44 | + }, |
| 45 | + new global::TUnit.Core.PropertyMetadata |
| 46 | + { |
| 47 | + ReflectionInfo = typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>).GetProperty("Optional"), |
| 48 | + Type = typeof(object), |
| 49 | + Name = "Optional", |
| 50 | + IsStatic = false, |
| 51 | + IsNullable = true, |
| 52 | + Getter = global::TUnit.Core.PropertyMetadataFactory.CreateGenericGetter(typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>), "Optional"), |
| 53 | + ClassMetadata = null!, |
| 54 | + ContainingTypeMetadata = null! |
| 55 | + } |
| 56 | + }, |
| 57 | + Parent = null |
| 58 | + }); |
| 59 | + private static readonly global::System.Type __classType = typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<>); |
| 60 | + private static readonly global::TUnit.Core.MethodMetadata __mm_0 = global::TUnit.Core.MethodMetadataFactory.Create("MetadataGettersReadClosedInstance", __classType, typeof(global::System.Threading.Tasks.Task), __classMetadata); |
| 61 | + private static global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<string> __CreateInstance_0(global::System.Type[] typeArgs, object?[] args) |
| 62 | + { |
| 63 | + return (global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<string>)global::System.Activator.CreateInstance(typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<string>), args)!; |
| 64 | + } |
| 65 | + private static global::System.Threading.Tasks.ValueTask __Invoke_0(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<string> instance, int methodIndex, object?[] args, global::System.Threading.CancellationToken cancellationToken) |
| 66 | + { |
| 67 | + try |
| 68 | + { |
| 69 | + return new global::System.Threading.Tasks.ValueTask(instance.MetadataGettersReadClosedInstance()); |
| 70 | + } |
| 71 | + catch (global::System.Exception ex) |
| 72 | + { |
| 73 | + return new global::System.Threading.Tasks.ValueTask(global::System.Threading.Tasks.Task.FromException(ex)); |
| 74 | + } |
| 75 | + } |
| 76 | + private static global::System.Attribute[] __Attributes_0(int groupIndex) |
| 77 | + { |
| 78 | + return new global::System.Attribute[] |
| 79 | + { |
| 80 | + new global::TUnit.Core.TestAttribute(), |
| 81 | + new global::TUnit.Core.ArgumentsAttribute("first"), |
| 82 | + new global::TUnit.Core.ArgumentsAttribute("second"), |
| 83 | + new global::TUnit.Core.ArgumentsAttribute(42), |
| 84 | + new global::TUnit.TestProject.Attributes.EngineTest(global::TUnit.TestProject.Attributes.ExpectedResult.Pass) |
| 85 | + }; |
| 86 | + } |
| 87 | + public static readonly global::TUnit.Core.TestEntry<global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<string>>[] Entries_0 = new global::TUnit.Core.TestEntry<global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<string>>[] |
| 88 | + { |
| 89 | + global::TUnit.Core.TestEntryFactory.Create<global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<string>>( |
| 90 | + methodName: "MetadataGettersReadClosedInstance", |
| 91 | + fullyQualifiedName: "TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<string>.MetadataGettersReadClosedInstance", |
| 92 | + filePath: "", |
| 93 | + lineNumber: 15, |
| 94 | + hasDataSource: true, |
| 95 | + classDataSources: new global::TUnit.Core.IDataSourceAttribute[] |
| 96 | +{ |
| 97 | + new global::TUnit.Core.ArgumentsAttribute("first"), |
| 98 | + new global::TUnit.Core.ArgumentsAttribute("second"), |
| 99 | +}, |
| 100 | + methodMetadata: __mm_0, |
| 101 | + createInstance: __CreateInstance_0, |
| 102 | + invokeBody: __Invoke_0, |
| 103 | + methodIndex: 0, |
| 104 | + createAttributes: __Attributes_0, |
| 105 | + attributeGroupIndex: 0), |
| 106 | + }; |
| 107 | + private static global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<int> __CreateInstance_1(global::System.Type[] typeArgs, object?[] args) |
| 108 | + { |
| 109 | + return (global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<int>)global::System.Activator.CreateInstance(typeof(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<int>), new object[] { 42 })!; |
| 110 | + } |
| 111 | + private static global::System.Threading.Tasks.ValueTask __Invoke_1(global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<int> instance, int methodIndex, object?[] args, global::System.Threading.CancellationToken cancellationToken) |
| 112 | + { |
| 113 | + try |
| 114 | + { |
| 115 | + return new global::System.Threading.Tasks.ValueTask(instance.MetadataGettersReadClosedInstance()); |
| 116 | + } |
| 117 | + catch (global::System.Exception ex) |
| 118 | + { |
| 119 | + return new global::System.Threading.Tasks.ValueTask(global::System.Threading.Tasks.Task.FromException(ex)); |
| 120 | + } |
| 121 | + } |
| 122 | + private static global::System.Attribute[] __Attributes_1(int groupIndex) |
| 123 | + { |
| 124 | + return new global::System.Attribute[] |
| 125 | + { |
| 126 | + new global::TUnit.Core.TestAttribute(), |
| 127 | + new global::TUnit.Core.ArgumentsAttribute("first"), |
| 128 | + new global::TUnit.Core.ArgumentsAttribute("second"), |
| 129 | + new global::TUnit.Core.ArgumentsAttribute(42), |
| 130 | + new global::TUnit.TestProject.Attributes.EngineTest(global::TUnit.TestProject.Attributes.ExpectedResult.Pass) |
| 131 | + }; |
| 132 | + } |
| 133 | + public static readonly global::TUnit.Core.TestEntry<global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<int>>[] Entries_1 = new global::TUnit.Core.TestEntry<global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<int>>[] |
| 134 | + { |
| 135 | + global::TUnit.Core.TestEntryFactory.Create<global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<int>>( |
| 136 | + methodName: "MetadataGettersReadClosedInstance", |
| 137 | + fullyQualifiedName: "TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<int>.MetadataGettersReadClosedInstance", |
| 138 | + filePath: "", |
| 139 | + lineNumber: 15, |
| 140 | + hasDataSource: true, |
| 141 | + classDataSources: new global::TUnit.Core.IDataSourceAttribute[] |
| 142 | +{ |
| 143 | + new global::TUnit.Core.ArgumentsAttribute(42), |
| 144 | +}, |
| 145 | + methodMetadata: __mm_0, |
| 146 | + createInstance: __CreateInstance_1, |
| 147 | + invokeBody: __Invoke_1, |
| 148 | + methodIndex: 0, |
| 149 | + createAttributes: __Attributes_1, |
| 150 | + attributeGroupIndex: 0), |
| 151 | + }; |
| 152 | +} |
| 153 | +internal static partial class TUnit_TestRegistration |
| 154 | +{ |
| 155 | + static readonly int _r_TUnit_TestProject_Bugs__7499_GenericPropertyMetadataTests_T_MetadataGettersReadClosedInstance_TestSource_0 = global::TUnit.Core.SourceRegistrar.RegisterEntries<global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<string>>(static () => TUnit_TestProject_Bugs__7499_GenericPropertyMetadataTests_T_MetadataGettersReadClosedInstance_TestSource.Entries_0); |
| 156 | +} |
| 157 | +internal static partial class TUnit_TestRegistration |
| 158 | +{ |
| 159 | + static readonly int _r_TUnit_TestProject_Bugs__7499_GenericPropertyMetadataTests_T_MetadataGettersReadClosedInstance_TestSource_1 = global::TUnit.Core.SourceRegistrar.RegisterEntries<global::TUnit.TestProject.Bugs._7499.GenericPropertyMetadataTests<int>>(static () => TUnit_TestProject_Bugs__7499_GenericPropertyMetadataTests_T_MetadataGettersReadClosedInstance_TestSource.Entries_1); |
| 160 | +} |
0 commit comments