Open sandboxFocus

Method WithExecutionContext

WithExecutionContext(ICompilation, string?)

Switches the MetalamaExecutionContext to a test context for a given ICompilation. This allows compile-time unit tests to use facilities such as ExpressionFactory.

Declaration
public IDisposable WithExecutionContext(ICompilation compilation, string? description = null)
Parameters
Type Name Description
ICompilation compilation
string description
Returns
Type Description
IDisposable