Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_
Parent = null
})
},
InstanceFactory = __CreateInstance,
InstanceFactory = TUnit_TestProject_AbstractTests_ConcreteClass2__ClassHelper.CreateInstance,
InvokeTypedTest = __InvokeTest,
};
metadata.UseRuntimeDataGeneration(testSessionId);
Expand Down Expand Up @@ -77,10 +77,6 @@ internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_
new global::TUnit.Core.InheritsTestsAttribute()
];
}
private static global::TUnit.TestProject.AbstractTests.ConcreteClass2 __CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.AbstractTests.ConcreteClass2();
}
private static global::System.Threading.Tasks.ValueTask __InvokeTest(global::TUnit.TestProject.AbstractTests.ConcreteClass2 instance, object?[] args, global::System.Threading.CancellationToken cancellationToken)
{
try
Expand All @@ -94,10 +90,25 @@ internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_
}
}
}
internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_ModuleInitializer


// ===== FILE SEPARATOR =====

// <auto-generated/>
#pragma warning disable

#nullable enable
namespace TUnit.Generated;
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("TUnit", "1.0.0.0")]
internal static class TUnit_TestProject_AbstractTests_ConcreteClass2__ClassHelper
{
internal static global::TUnit.TestProject.AbstractTests.ConcreteClass2 CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.AbstractTests.ConcreteClass2();
}
[global::System.Runtime.CompilerServices.ModuleInitializer]
public static void Initialize()
internal static void Initialize()
{
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AbstractTests.ConcreteClass2), new TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_TestSource());
}
Expand Down
40 changes: 20 additions & 20 deletions TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource
Parent = null
})
},
InstanceFactory = __CreateInstance,
InstanceFactory = TUnit_TestProject_AfterTests_CleanupTests__ClassHelper.CreateInstance,
InvokeTypedTest = __InvokeTest,
};
metadata.UseRuntimeDataGeneration(testSessionId);
Expand Down Expand Up @@ -75,10 +75,6 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource
new global::TUnit.Core.TestAttribute()
];
}
private static global::TUnit.TestProject.AfterTests.CleanupTests __CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.AfterTests.CleanupTests();
}
private static global::System.Threading.Tasks.ValueTask __InvokeTest(global::TUnit.TestProject.AfterTests.CleanupTests instance, object?[] args, global::System.Threading.CancellationToken cancellationToken)
{
try
Expand All @@ -91,14 +87,6 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource
}
}
}
internal static class TUnit_TestProject_AfterTests_CleanupTests_Test1_ModuleInitializer
{
[global::System.Runtime.CompilerServices.ModuleInitializer]
public static void Initialize()
{
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource());
}
}


// ===== FILE SEPARATOR =====
Expand Down Expand Up @@ -149,7 +137,7 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource
Parent = null
})
},
InstanceFactory = __CreateInstance,
InstanceFactory = TUnit_TestProject_AfterTests_CleanupTests__ClassHelper.CreateInstance,
InvokeTypedTest = __InvokeTest,
};
metadata.UseRuntimeDataGeneration(testSessionId);
Expand Down Expand Up @@ -180,10 +168,6 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource
new global::TUnit.Core.TestAttribute()
];
}
private static global::TUnit.TestProject.AfterTests.CleanupTests __CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.AfterTests.CleanupTests();
}
private static global::System.Threading.Tasks.ValueTask __InvokeTest(global::TUnit.TestProject.AfterTests.CleanupTests instance, object?[] args, global::System.Threading.CancellationToken cancellationToken)
{
try
Expand All @@ -196,11 +180,27 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource
}
}
}
internal static class TUnit_TestProject_AfterTests_CleanupTests_Test2_ModuleInitializer


// ===== FILE SEPARATOR =====

// <auto-generated/>
#pragma warning disable

#nullable enable
namespace TUnit.Generated;
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("TUnit", "1.0.0.0")]
internal static class TUnit_TestProject_AfterTests_CleanupTests__ClassHelper
{
internal static global::TUnit.TestProject.AfterTests.CleanupTests CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.AfterTests.CleanupTests();
}
[global::System.Runtime.CompilerServices.ModuleInitializer]
public static void Initialize()
internal static void Initialize()
{
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource());
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource());
}
}
40 changes: 20 additions & 20 deletions TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource
Parent = null
})
},
InstanceFactory = __CreateInstance,
InstanceFactory = TUnit_TestProject_AfterTests_CleanupTests__ClassHelper.CreateInstance,
InvokeTypedTest = __InvokeTest,
};
metadata.UseRuntimeDataGeneration(testSessionId);
Expand Down Expand Up @@ -75,10 +75,6 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource
new global::TUnit.Core.TestAttribute()
];
}
private static global::TUnit.TestProject.AfterTests.CleanupTests __CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.AfterTests.CleanupTests();
}
private static global::System.Threading.Tasks.ValueTask __InvokeTest(global::TUnit.TestProject.AfterTests.CleanupTests instance, object?[] args, global::System.Threading.CancellationToken cancellationToken)
{
try
Expand All @@ -91,14 +87,6 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource
}
}
}
internal static class TUnit_TestProject_AfterTests_CleanupTests_Test1_ModuleInitializer
{
[global::System.Runtime.CompilerServices.ModuleInitializer]
public static void Initialize()
{
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource());
}
}


// ===== FILE SEPARATOR =====
Expand Down Expand Up @@ -149,7 +137,7 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource
Parent = null
})
},
InstanceFactory = __CreateInstance,
InstanceFactory = TUnit_TestProject_AfterTests_CleanupTests__ClassHelper.CreateInstance,
InvokeTypedTest = __InvokeTest,
};
metadata.UseRuntimeDataGeneration(testSessionId);
Expand Down Expand Up @@ -180,10 +168,6 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource
new global::TUnit.Core.TestAttribute()
];
}
private static global::TUnit.TestProject.AfterTests.CleanupTests __CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.AfterTests.CleanupTests();
}
private static global::System.Threading.Tasks.ValueTask __InvokeTest(global::TUnit.TestProject.AfterTests.CleanupTests instance, object?[] args, global::System.Threading.CancellationToken cancellationToken)
{
try
Expand All @@ -196,11 +180,27 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource
}
}
}
internal static class TUnit_TestProject_AfterTests_CleanupTests_Test2_ModuleInitializer


// ===== FILE SEPARATOR =====

// <auto-generated/>
#pragma warning disable

#nullable enable
namespace TUnit.Generated;
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("TUnit", "1.0.0.0")]
internal static class TUnit_TestProject_AfterTests_CleanupTests__ClassHelper
{
internal static global::TUnit.TestProject.AfterTests.CleanupTests CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.AfterTests.CleanupTests();
}
[global::System.Runtime.CompilerServices.ModuleInitializer]
public static void Initialize()
internal static void Initialize()
{
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource());
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.AfterTests.CleanupTests), new TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource());
}
}
55 changes: 22 additions & 33 deletions TUnit.Core.SourceGenerator.Tests/ArgsAsArrayTests.Test.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ internal sealed class TUnit_TestProject_ArgsAsArrayTests_Params__string___TestSo
Parent = null
})
},
InstanceFactory = __CreateInstance,
InstanceFactory = TUnit_TestProject_ArgsAsArrayTests__ClassHelper.CreateInstance,
InvokeTypedTest = __InvokeTest,
};
metadata.UseRuntimeDataGeneration(testSessionId);
Expand Down Expand Up @@ -87,10 +87,6 @@ internal sealed class TUnit_TestProject_ArgsAsArrayTests_Params__string___TestSo
new global::TUnit.Core.TestAttribute()
];
}
private static global::TUnit.TestProject.ArgsAsArrayTests __CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.ArgsAsArrayTests();
}
private static global::System.Threading.Tasks.ValueTask __InvokeTest(global::TUnit.TestProject.ArgsAsArrayTests instance, object?[] args, global::System.Threading.CancellationToken cancellationToken)
{
try
Expand Down Expand Up @@ -142,14 +138,6 @@ internal sealed class TUnit_TestProject_ArgsAsArrayTests_Params__string___TestSo
}
}
}
internal static class TUnit_TestProject_ArgsAsArrayTests_Params__string___ModuleInitializer
{
[global::System.Runtime.CompilerServices.ModuleInitializer]
public static void Initialize()
{
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new TUnit_TestProject_ArgsAsArrayTests_Params__string___TestSource());
}
}


// ===== FILE SEPARATOR =====
Expand Down Expand Up @@ -212,7 +200,7 @@ internal sealed class TUnit_TestProject_ArgsAsArrayTests_ParamsEnumerable__IEnum
Parent = null
})
},
InstanceFactory = __CreateInstance,
InstanceFactory = TUnit_TestProject_ArgsAsArrayTests__ClassHelper.CreateInstance,
InvokeTypedTest = __InvokeTest,
};
metadata.UseRuntimeDataGeneration(testSessionId);
Expand Down Expand Up @@ -243,10 +231,6 @@ internal sealed class TUnit_TestProject_ArgsAsArrayTests_ParamsEnumerable__IEnum
new global::TUnit.Core.TestAttribute()
];
}
private static global::TUnit.TestProject.ArgsAsArrayTests __CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.ArgsAsArrayTests();
}
private static global::System.Threading.Tasks.ValueTask __InvokeTest(global::TUnit.TestProject.ArgsAsArrayTests instance, object?[] args, global::System.Threading.CancellationToken cancellationToken)
{
try
Expand Down Expand Up @@ -298,14 +282,6 @@ internal sealed class TUnit_TestProject_ArgsAsArrayTests_ParamsEnumerable__IEnum
}
}
}
internal static class TUnit_TestProject_ArgsAsArrayTests_ParamsEnumerable__IEnumerable_string__ModuleInitializer
{
[global::System.Runtime.CompilerServices.ModuleInitializer]
public static void Initialize()
{
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new TUnit_TestProject_ArgsAsArrayTests_ParamsEnumerable__IEnumerable_string__TestSource());
}
}


// ===== FILE SEPARATOR =====
Expand Down Expand Up @@ -375,7 +351,7 @@ internal sealed class TUnit_TestProject_ArgsAsArrayTests_Following_Non_Params__i
Parent = null
})
},
InstanceFactory = __CreateInstance,
InstanceFactory = TUnit_TestProject_ArgsAsArrayTests__ClassHelper.CreateInstance,
InvokeTypedTest = __InvokeTest,
};
metadata.UseRuntimeDataGeneration(testSessionId);
Expand Down Expand Up @@ -406,10 +382,6 @@ internal sealed class TUnit_TestProject_ArgsAsArrayTests_Following_Non_Params__i
new global::TUnit.Core.TestAttribute()
];
}
private static global::TUnit.TestProject.ArgsAsArrayTests __CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.ArgsAsArrayTests();
}
private static global::System.Threading.Tasks.ValueTask __InvokeTest(global::TUnit.TestProject.ArgsAsArrayTests instance, object?[] args, global::System.Threading.CancellationToken cancellationToken)
{
try
Expand Down Expand Up @@ -461,11 +433,28 @@ internal sealed class TUnit_TestProject_ArgsAsArrayTests_Following_Non_Params__i
}
}
}
internal static class TUnit_TestProject_ArgsAsArrayTests_Following_Non_Params__int_IEnumerable_string__ModuleInitializer


// ===== FILE SEPARATOR =====

// <auto-generated/>
#pragma warning disable

#nullable enable
namespace TUnit.Generated;
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("TUnit", "1.0.0.0")]
internal static class TUnit_TestProject_ArgsAsArrayTests__ClassHelper
{
internal static global::TUnit.TestProject.ArgsAsArrayTests CreateInstance(global::System.Type[] typeArgs, object?[] args)
{
return new global::TUnit.TestProject.ArgsAsArrayTests();
}
[global::System.Runtime.CompilerServices.ModuleInitializer]
public static void Initialize()
internal static void Initialize()
{
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new TUnit_TestProject_ArgsAsArrayTests_Following_Non_Params__int_IEnumerable_string__TestSource());
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new TUnit_TestProject_ArgsAsArrayTests_ParamsEnumerable__IEnumerable_string__TestSource());
global::TUnit.Core.SourceRegistrar.Register(typeof(global::TUnit.TestProject.ArgsAsArrayTests), new TUnit_TestProject_ArgsAsArrayTests_Params__string___TestSource());
}
}
Loading
Loading