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

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 directory containing the current test assembly.

public string WorkDirectory { get; }

Gets the directory to be used for outputing files created by this test run.

public TestContext(IDictionary context)

Constructs a TestContext using the provided context dictionary