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

ITest

public interface ITest : IXmlNodeBuilder
Common interface supported by all representations of a test. Only includes informational fields. The Run method is specifically excluded to allow for data-only representations of a test.
object[] Arguments { get; }

The arguments to use in creating the test or empty array if none are required.

string ClassName { get; }

Gets the name of the class containing this test. Returns null if the test is not associated with a class.

object Fixture { get; }

Gets a fixture object for running this test.

string FullName { get; }

Gets the fully qualified name of the test

bool HasChildren { get; }

Gets a bool indicating whether the current test has any descendant tests.

string Id { get; }

Gets the id of the test

bool IsSuite { get; }

Returns true if this is a test suite

Gets the method which declares the test, or null if no method is associated with this test.

string MethodName { get; }

Gets the name of the method implementing this test. Returns null if the test is not implemented as a method.

string Name { get; }

Gets the name of the test

ITest Parent { get; }

Gets the parent test, if any.

Gets the properties of the test

RunState RunState { get; }

Gets the RunState of the test, indicating whether it can be run.

int TestCaseCount { get; }

Count of the test cases ( 1 if this is a test case )

IList<ITest> Tests { get; }

Gets this test's child tests

string TestType { get; }

Gets the type of the test

Gets the Type of the test fixture, if applicable, or null if no fixture type is associated with this test.