예제 #1
0
        public void ReplaceGlobalMethodCallsNoArgsSingleLine()
        {
            ScriptEngine.InitScriptEngine(new List <Assembly>());

            var original = "Output();";
            var expected = "TabularEditor.Scripting.ScriptHelper.Output();";

            Assert.AreEqual(expected, ScriptEngine.ReplaceGlobalMethodCalls(original));
        }
예제 #2
0
 /// <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);
 }
예제 #3
0
 public void TestInitialize()
 {
     ScriptEngine.InitScriptEngine(new List <Assembly>());
 }