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

ITestCaseBuilder

public interface ITestCaseBuilder
The ITestCaseBuilder interface is exposed by a class that knows how to build a test case from certain methods.
Test BuildFrom(IMethodInfo method, Test suite)

Build a TestCase from the provided MethodInfo for inclusion in the suite being constructed.

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.