C# Class NUnit.Framework.Internal.TestExecutionContext.IsolatedContext

An IsolatedContext is used when running code that may effect the current result in ways that should not impact the final result of the test. A new TestExecutionContext is created with an initially clear result, which is discarded on exiting the context.
Inheritance: IDisposable
Show file Open project: nunit/nunit

Public Methods

Method Description
Dispose ( ) : void

Restore the original TestExecutionContext.

IsolatedContext ( ) : System

Save the original current TestExecutionContext and make a new isolated context current.

Method Details

Dispose() public method

Restore the original TestExecutionContext.
public Dispose ( ) : void
return void

IsolatedContext() public method

Save the original current TestExecutionContext and make a new isolated context current.
public IsolatedContext ( ) : System
return System