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
Afficher le fichier Open project: nunit/nunit

Méthodes publiques

Méthode 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 méthode

Restore the original TestExecutionContext.
public Dispose ( ) : void
Résultat void

IsolatedContext() public méthode

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