Esempio n. 1
0
        public void newScriptToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ScriptManager.NewScript();
            RefreshTreeListViewAsync();

            ASSERT_TreeViewIsTheSameAsInScriptManager();
        }
Esempio n. 2
0
 public void ResetScriptManager()
 {
     for (int i = ScriptManager.LoadedScripts.Count - 1; i >= 0; --i)
     {
         ScriptManager.RemoveScript(ScriptManager.LoadedScripts[i]);
     }
     ScriptManager.NewScript();
 }
Esempio n. 3
0
        public MouseRobot(IScriptManager ScriptManager, ITestRunner TestRunner, IRecordingManager RecordingManager, IRuntimeSettings RuntimeSettings,
                          IScreenStateThread ScreenStateThread, IFeatureDetectionThread FeatureDetectionThread, ISettingsManager SettingsManager,
                          IInputCallbacks InputCallbacks, IPluginLoader PluginLoader, IStatusManager StatusManager)
        {
            this.ScriptManager          = ScriptManager;
            this.TestRunner             = TestRunner;
            this.RecordingManager       = RecordingManager;
            this.RuntimeSettings        = RuntimeSettings;
            this.ScreenStateThread      = ScreenStateThread;
            this.FeatureDetectionThread = FeatureDetectionThread;
            this.SettingsManager        = SettingsManager;
            this.InputCallbacks         = InputCallbacks;
            this.PluginLoader           = PluginLoader;
            this.StatusManager          = StatusManager;

            ScriptManager.NewScript();
            TestRunner.TestRunEnd += OnScriptFinished;
        }
 public void ScriptManager_NewScript_WillCreateSecondEmptyScript()
 {
     ScriptManager.NewScript();
     Assert.AreEqual(2, ScriptManager.LoadedScripts.Count);
 }