Пример #1
0
        public void FreeCommand()
        {
            ActScript v = new ActScript();

            v.ScriptInterpreterType = ActScript.eScriptInterpreterType.VBS;
            v.ScriptCommand         = ActScript.eScriptAct.FreeCommand;
            v.AddOrUpdateInputParamValue("Free Command", "Wscript.echo \"Hello\"");

            v.Execute();

            //Assert.AreEqual(v.ReturnValues[0].Actual, "5");
        }
 private void parseScriptHeader(string[] script)
 {
     foreach (string line in script)
     {
         if (line.Contains("GINGER_Description"))
         {
             ScriptDescriptionContent.Content = replaceStartWithInput(line);
         }
         if (line.Contains("GINGER_$"))
         {
             f.AddOrUpdateInputParamValue(replaceStartWithInput(line), "");
         }
     }
     if (String.IsNullOrEmpty(ScriptDescriptionContent.Content.ToString()))
     {
         ScriptDescriptionPanel.Visibility = Visibility.Collapsed;
     }
     else
     {
         ScriptDescriptionPanel.Visibility = Visibility.Visible;
     }
 }