public void newScriptToolStripMenuItem1_Click(object sender, EventArgs e) { ScriptManager.NewScript(); RefreshTreeListViewAsync(); ASSERT_TreeViewIsTheSameAsInScriptManager(); }
public void ResetScriptManager() { for (int i = ScriptManager.LoadedScripts.Count - 1; i >= 0; --i) { ScriptManager.RemoveScript(ScriptManager.LoadedScripts[i]); } ScriptManager.NewScript(); }
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); }