Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#nullable enable
namespace TUnit.Generated;
internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource
internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource, global::TUnit.Core.Interfaces.SourceGenerator.ITestDescriptorSource
{
public async global::System.Collections.Generic.IAsyncEnumerable<global::TUnit.Core.TestMetadata> GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -72,6 +72,24 @@ internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClass
yield return metadata;
yield break;
}
public global::System.Collections.Generic.IEnumerable<global::TUnit.Core.TestDescriptor> EnumerateTestDescriptors()
{
yield return new global::TUnit.Core.TestDescriptor
{
TestId = "TUnit.TestProject.AbstractTests.ConcreteClass1.AssertClassName",
ClassName = "ConcreteClass1",
MethodName = "AssertClassName",
FullyQualifiedName = "TUnit.TestProject.AbstractTests.ConcreteClass1.AssertClassName",
FilePath = @"",
LineNumber = 3,
Categories = global::System.Array.Empty<string>(),
Properties = global::System.Array.Empty<string>(),
HasDataSource = false,
RepeatCount = 0,
DependsOn = global::System.Array.Empty<string>(),
Materializer = GetTestsAsync
};
}
}
internal static class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_ModuleInitializer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#nullable enable
namespace TUnit.Generated;
internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource
internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource, global::TUnit.Core.Interfaces.SourceGenerator.ITestDescriptorSource
{
public async global::System.Collections.Generic.IAsyncEnumerable<global::TUnit.Core.TestMetadata> GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -74,6 +74,24 @@ internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_
yield return metadata;
yield break;
}
public global::System.Collections.Generic.IEnumerable<global::TUnit.Core.TestDescriptor> EnumerateTestDescriptors()
{
yield return new global::TUnit.Core.TestDescriptor
{
TestId = "TUnit.TestProject.AbstractTests.ConcreteClass2.SecondTest",
ClassName = "ConcreteClass2",
MethodName = "SecondTest",
FullyQualifiedName = "TUnit.TestProject.AbstractTests.ConcreteClass2.SecondTest",
FilePath = @"",
LineNumber = 11,
Categories = global::System.Array.Empty<string>(),
Properties = global::System.Array.Empty<string>(),
HasDataSource = false,
RepeatCount = 0,
DependsOn = global::System.Array.Empty<string>(),
Materializer = GetTestsAsync
};
}
}
internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_ModuleInitializer
{
Expand All @@ -92,7 +110,7 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_SecondTest_

#nullable enable
namespace TUnit.Generated;
internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource
internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource, global::TUnit.Core.Interfaces.SourceGenerator.ITestDescriptorSource
{
public async global::System.Collections.Generic.IAsyncEnumerable<global::TUnit.Core.TestMetadata> GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -162,6 +180,24 @@ internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClass
yield return metadata;
yield break;
}
public global::System.Collections.Generic.IEnumerable<global::TUnit.Core.TestDescriptor> EnumerateTestDescriptors()
{
yield return new global::TUnit.Core.TestDescriptor
{
TestId = "TUnit.TestProject.AbstractTests.ConcreteClass2.AssertClassName",
ClassName = "ConcreteClass2",
MethodName = "AssertClassName",
FullyQualifiedName = "TUnit.TestProject.AbstractTests.ConcreteClass2.AssertClassName",
FilePath = @"",
LineNumber = 3,
Categories = global::System.Array.Empty<string>(),
Properties = global::System.Array.Empty<string>(),
HasDataSource = false,
RepeatCount = 0,
DependsOn = global::System.Array.Empty<string>(),
Materializer = GetTestsAsync
};
}
}
internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClassName_ModuleInitializer
{
Expand All @@ -180,7 +216,7 @@ internal static class TUnit_TestProject_AbstractTests_ConcreteClass2_AssertClass

#nullable enable
namespace TUnit.Generated;
internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource
internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource, global::TUnit.Core.Interfaces.SourceGenerator.ITestDescriptorSource
{
public async global::System.Collections.Generic.IAsyncEnumerable<global::TUnit.Core.TestMetadata> GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -249,6 +285,24 @@ internal sealed class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClass
yield return metadata;
yield break;
}
public global::System.Collections.Generic.IEnumerable<global::TUnit.Core.TestDescriptor> EnumerateTestDescriptors()
{
yield return new global::TUnit.Core.TestDescriptor
{
TestId = "TUnit.TestProject.AbstractTests.ConcreteClass1.AssertClassName",
ClassName = "ConcreteClass1",
MethodName = "AssertClassName",
FullyQualifiedName = "TUnit.TestProject.AbstractTests.ConcreteClass1.AssertClassName",
FilePath = @"",
LineNumber = 3,
Categories = global::System.Array.Empty<string>(),
Properties = global::System.Array.Empty<string>(),
HasDataSource = false,
RepeatCount = 0,
DependsOn = global::System.Array.Empty<string>(),
Materializer = GetTestsAsync
};
}
}
internal static class TUnit_TestProject_AbstractTests_ConcreteClass1_AssertClassName_ModuleInitializer
{
Expand Down
40 changes: 38 additions & 2 deletions TUnit.Core.SourceGenerator.Tests/AfterAllTests.Test.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#nullable enable
namespace TUnit.Generated;
internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource
internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource, global::TUnit.Core.Interfaces.SourceGenerator.ITestDescriptorSource
{
public async global::System.Collections.Generic.IAsyncEnumerable<global::TUnit.Core.TestMetadata> GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -71,6 +71,24 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource
yield return metadata;
yield break;
}
public global::System.Collections.Generic.IEnumerable<global::TUnit.Core.TestDescriptor> EnumerateTestDescriptors()
{
yield return new global::TUnit.Core.TestDescriptor
{
TestId = "TUnit.TestProject.AfterTests.CleanupTests.Test1",
ClassName = "CleanupTests",
MethodName = "Test1",
FullyQualifiedName = "TUnit.TestProject.AfterTests.CleanupTests.Test1",
FilePath = @"",
LineNumber = 98,
Categories = global::System.Array.Empty<string>(),
Properties = global::System.Array.Empty<string>(),
HasDataSource = false,
RepeatCount = 0,
DependsOn = global::System.Array.Empty<string>(),
Materializer = GetTestsAsync
};
}
}
internal static class TUnit_TestProject_AfterTests_CleanupTests_Test1_ModuleInitializer
{
Expand All @@ -89,7 +107,7 @@ internal static class TUnit_TestProject_AfterTests_CleanupTests_Test1_ModuleInit

#nullable enable
namespace TUnit.Generated;
internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource
internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource, global::TUnit.Core.Interfaces.SourceGenerator.ITestDescriptorSource
{
public async global::System.Collections.Generic.IAsyncEnumerable<global::TUnit.Core.TestMetadata> GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -157,6 +175,24 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource
yield return metadata;
yield break;
}
public global::System.Collections.Generic.IEnumerable<global::TUnit.Core.TestDescriptor> EnumerateTestDescriptors()
{
yield return new global::TUnit.Core.TestDescriptor
{
TestId = "TUnit.TestProject.AfterTests.CleanupTests.Test2",
ClassName = "CleanupTests",
MethodName = "Test2",
FullyQualifiedName = "TUnit.TestProject.AfterTests.CleanupTests.Test2",
FilePath = @"",
LineNumber = 104,
Categories = global::System.Array.Empty<string>(),
Properties = global::System.Array.Empty<string>(),
HasDataSource = false,
RepeatCount = 0,
DependsOn = global::System.Array.Empty<string>(),
Materializer = GetTestsAsync
};
}
}
internal static class TUnit_TestProject_AfterTests_CleanupTests_Test2_ModuleInitializer
{
Expand Down
40 changes: 38 additions & 2 deletions TUnit.Core.SourceGenerator.Tests/AfterTests.Test.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#nullable enable
namespace TUnit.Generated;
internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource
internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource, global::TUnit.Core.Interfaces.SourceGenerator.ITestDescriptorSource
{
public async global::System.Collections.Generic.IAsyncEnumerable<global::TUnit.Core.TestMetadata> GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -71,6 +71,24 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test1_TestSource
yield return metadata;
yield break;
}
public global::System.Collections.Generic.IEnumerable<global::TUnit.Core.TestDescriptor> EnumerateTestDescriptors()
{
yield return new global::TUnit.Core.TestDescriptor
{
TestId = "TUnit.TestProject.AfterTests.CleanupTests.Test1",
ClassName = "CleanupTests",
MethodName = "Test1",
FullyQualifiedName = "TUnit.TestProject.AfterTests.CleanupTests.Test1",
FilePath = @"",
LineNumber = 98,
Categories = global::System.Array.Empty<string>(),
Properties = global::System.Array.Empty<string>(),
HasDataSource = false,
RepeatCount = 0,
DependsOn = global::System.Array.Empty<string>(),
Materializer = GetTestsAsync
};
}
}
internal static class TUnit_TestProject_AfterTests_CleanupTests_Test1_ModuleInitializer
{
Expand All @@ -89,7 +107,7 @@ internal static class TUnit_TestProject_AfterTests_CleanupTests_Test1_ModuleInit

#nullable enable
namespace TUnit.Generated;
internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource
internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource : global::TUnit.Core.Interfaces.SourceGenerator.ITestSource, global::TUnit.Core.Interfaces.SourceGenerator.ITestDescriptorSource
{
public async global::System.Collections.Generic.IAsyncEnumerable<global::TUnit.Core.TestMetadata> GetTestsAsync(string testSessionId, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -157,6 +175,24 @@ internal sealed class TUnit_TestProject_AfterTests_CleanupTests_Test2_TestSource
yield return metadata;
yield break;
}
public global::System.Collections.Generic.IEnumerable<global::TUnit.Core.TestDescriptor> EnumerateTestDescriptors()
{
yield return new global::TUnit.Core.TestDescriptor
{
TestId = "TUnit.TestProject.AfterTests.CleanupTests.Test2",
ClassName = "CleanupTests",
MethodName = "Test2",
FullyQualifiedName = "TUnit.TestProject.AfterTests.CleanupTests.Test2",
FilePath = @"",
LineNumber = 104,
Categories = global::System.Array.Empty<string>(),
Properties = global::System.Array.Empty<string>(),
HasDataSource = false,
RepeatCount = 0,
DependsOn = global::System.Array.Empty<string>(),
Materializer = GetTestsAsync
};
}
}
internal static class TUnit_TestProject_AfterTests_CleanupTests_Test2_ModuleInitializer
{
Expand Down
Loading
Loading