C# Class Rhino.Tests.Utils

Misc utilities to make test code easier.
Misc utilities to make test code easier.
Mostrar archivo Open project: hazzik/Rhino.Net

Public Methods

Method Description
RunWithAllOptimizationLevels ( ContextAction action ) : void

Runs the action successively with all available optimization levels

RunWithAllOptimizationLevels ( ContextFactory contextFactory, ContextAction action ) : void

Runs the action successively with all available optimization levels

RunWithOptimizationLevel ( ContextAction action, int optimizationLevel ) : void

Runs the provided action at the given optimization level

RunWithOptimizationLevel ( ContextFactory contextFactory, ContextAction action, int optimizationLevel ) : void

Runs the provided action at the given optimization level

Private Methods

Method Description
ExecuteScript ( string script, int optimizationLevel ) : void

Execute the provided script in a fresh context as "myScript.js".

Execute the provided script in a fresh context as "myScript.js".

Method Details

RunWithAllOptimizationLevels() public static method

Runs the action successively with all available optimization levels
public static RunWithAllOptimizationLevels ( ContextAction action ) : void
action ContextAction
return void

RunWithAllOptimizationLevels() public static method

Runs the action successively with all available optimization levels
public static RunWithAllOptimizationLevels ( ContextFactory contextFactory, ContextAction action ) : void
contextFactory ContextFactory
action ContextAction
return void

RunWithOptimizationLevel() public static method

Runs the provided action at the given optimization level
public static RunWithOptimizationLevel ( ContextAction action, int optimizationLevel ) : void
action ContextAction
optimizationLevel int
return void

RunWithOptimizationLevel() public static method

Runs the provided action at the given optimization level
public static RunWithOptimizationLevel ( ContextFactory contextFactory, ContextAction action, int optimizationLevel ) : void
contextFactory ContextFactory
action ContextAction
optimizationLevel int
return void