<PackageReference Include="NUnit" Version="4.2.2" />

NUnit.Framework.Internal.Execution.WorkItemBuilder

public static class WorkItemBuilder
WorkItemBuilder class knows how to build a tree of work items from a tree of tests
namespace NUnit.Framework.Internal.Execution { public static class WorkItemBuilder { public static WorkItem CreateWorkItem(ITest test, ITestFilter filter, bool recursive = false); } }