Changeset 16692 for branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/ScriptingUtils.cs
- Timestamp:
- 03/18/19 17:24:30 (6 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/ScriptingUtils.cs
r12012 r16692 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System; 23 using System.Threading;24 23 using HeuristicLab.Scripting; 25 24 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 33 32 34 33 public static void RunScript(CSharpScript s) { 35 var trigger = new EventWaitHandle(false, EventResetMode.ManualReset);36 34 Exception ex = null; 37 38 s.ScriptExecutionFinished += (sender, e) => { ex = e.Value; trigger.Set(); }; 39 s.ExecuteAsync(); 40 trigger.WaitOne(); 41 35 s.ScriptExecutionFinished += (sender, e) => { ex = e.Value; }; 36 s.Execute(); 42 37 Assert.IsNull(ex); 43 38 }
Note: See TracChangeset
for help on using the changeset viewer.