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

SetUpTearDownItem

public class SetUpTearDownItem
SetUpTearDownItem holds the setup and teardown methods for a single level of the inheritance hierarchy.
public bool HasMethods { get; }

Returns true if this level has any methods at all. This flag is used to discard levels that do nothing.

public SetUpTearDownItem(IList<MethodInfo> setUpMethods, IList<MethodInfo> tearDownMethods)

Construct a SetUpTearDownNode

public void RunSetUp(TestExecutionContext context)

Run SetUp on this level.

public void RunTearDown(TestExecutionContext context)

Run TearDown for this level.