<PackageReference Include="nunit" Version="2.5.9.10348" />

TestContext

public class TestContext
Provide the context information of the current test
public class ResultAdapter

ResultAdapter adapts a TestResult for consumption by the user test code.

public class TestAdapter

TestAdapter adapts a Test for consumption by the user test code.

public static TestContext CurrentContext { get; }

Get the current test context. This is created as needed. The user may save the context for use within a test, but it should not be used outside the test for which it is created.

public ResultAdapter Result { get; }

Gets a ResultAdapter representing the current result for the test executing in this context.

public TestAdapter Test { get; }

Gets a TestAdapter representing the currently executing test in this context.

public string TestDirectory { get; }

Gets the current directory for this TestContext

public TestContext(IDictionary context)

Constructs a TestContext using the provided context dictionary