- Timestamp:
- 10/31/14 12:41:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/Scripts/GUIAutomationScriptTest.cs
r11514 r11515 21 21 22 22 using System.IO; 23 using System.Linq;24 using HeuristicLab.MainForm;25 using HeuristicLab.Optimization;26 23 using HeuristicLab.Persistence.Default.Xml; 27 24 using HeuristicLab.Scripting; … … 45 42 } 46 43 47 [TestMethod]48 [TestCategory("Scripts.Execute")]49 [TestProperty("Time", "long")]50 public void RunGUIAutomationScriptTest() {51 var script = CreateGUIAutomationScript();52 53 script.Compile();54 ScriptingUtils.RunScript(script);55 56 var experiment = ScriptingUtils.GetVariable<Experiment>(script, ExperimentVariableName);57 var contentViews = MainFormManager.MainForm.Views.OfType<IContentView>().ToList();58 Assert.IsNotNull(contentViews.SingleOrDefault(x => x.Content == experiment));59 Assert.IsNotNull(contentViews.SingleOrDefault(x => x.Content == experiment.Runs));60 }61 62 44 private CSharpScript CreateGUIAutomationScript() { 63 45 var script = new CSharpScript {
Note: See TracChangeset
for help on using the changeset viewer.