Table of Contents

Class TestExecutionContext.AdhocContext

Namespace
NUnit.Framework.Internal
Assembly
nunit.framework.dll

An AdhocTestExecutionContext is created whenever a context is needed but not available in CurrentContext. This happens when tests are run on an ad-hoc basis or Asserts are used outside of tests.

public class TestExecutionContext.AdhocContext : TestExecutionContext
Inheritance
TestExecutionContext.AdhocContext
Inherited Members

Constructors

AdhocContext()

Construct an AdhocTestExecutionContext, which is used whenever the current TestExecutionContext is found to be null.

public AdhocContext()