TestContext | NUnit Docs
docs.nunit.org › writing-tests › TestContextIt's important to remember that "test" in NUnit may refer to an individual test cases or a suite such as a TestFixture. Within a test method, SetUp method or TearDown method, the context is that of the individual test case. Within a OneTimeSetUp or OneTimeTearDown method, the context refers to the fixture as a whole. This can lead to confusion, since most runners display information about fixtures differently from test cases.
NUnit - TestContext
nunit.org › nunitv2 › docsTestContext (NUnit 2.5.7 / 2.6) Each NUnit test runs in an execution context, which includes information about the environment as well as the test itself. The TestContext class allows tests to access certain information about the execution context. This class has been present in NUnit since 2.5.7, but was undocumented until the 2.6 release.
TestContext · nunit/docs Wiki · GitHub
github.com › nunit › docsJul 10, 2020 · NUnit Release Notes Framework Console and Engine License Getting Started Installation Upgrading .NET Core and .NET Standard Samples Breaking Changes Writing Tests Attributes Assertions Multiple Asserts Assumptions Warnings Constraints SetUp and TearDown TestCaseData TestFixtureData TestContext AssertionHelper ListMapper Running Tests Console Runner