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

ITestCaseBuilder

public interface ITestCaseBuilder
The ITestCaseBuilder interface is exposed by a class that knows how to build a test from a specified method, possibly containing child test cases.
Test BuildFrom(IMethodInfo method, Test suite)

Builds a single test from the specified method and context, possibly containing child test cases.

bool CanBuildFrom(IMethodInfo method, Test suite)

Examine the method and determine if it is suitable for this builder to use in building a TestCase to be included in the suite being populated. Note that returning false will cause the method to be ignored in loading the tests. If it is desired to load the method but label it as non-runnable, ignored, etc., then this method must return true.