Enters the specified context with the current thread.

Namespace:  Gallio.Framework
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public static TestContextCookie EnterContext(
	TestContext context
)
Visual Basic (Declaration)
Public Shared Function EnterContext ( _
	context As TestContext _
) As TestContextCookie

Parameters

context
Type: Gallio.Framework..::.TestContext
The context to enter, or null to enter a scope without a context.

Return Value

A cookie that can be used to restore the current thread's context to its previous value.

Remarks

Conceptually this method pushes the specified context onto the context stack for the current thread. It then returns a cookie that can be used to restore the current thread's context to its previous value.

See Also