public void ReplaceGlobalMethodCallsNoArgsSingleLine() { ScriptEngine.InitScriptEngine(new List <Assembly>()); var original = "Output();"; var expected = "TabularEditor.Scripting.ScriptHelper.Output();"; Assert.AreEqual(expected, ScriptEngine.ReplaceGlobalMethodCalls(original)); }
/// <summary> /// Make sure that the TOMWrapper.dll is available in the current user's temp folder. /// Also, compiles current user's CustomActions.xml and loads them into the editor. /// </summary> static void SetupLibraries(IList <Assembly> plugins) { ScriptEngine.InitScriptEngine(plugins); }
public void TestInitialize() { ScriptEngine.InitScriptEngine(new List <Assembly>()); }