Changeset 6433
- Timestamp:
- 06/16/11 15:22:13 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Tests/ExperimentManagerTests.cs
r5599 r6433 20 20 #endregion 21 21 22 using System; 22 23 using System.Threading; 23 24 using HeuristicLab.Algorithms.GeneticAlgorithm; 24 using HeuristicLab.Core;25 25 using HeuristicLab.Optimization; 26 26 using HeuristicLab.Problems.TestFunctions; 27 using HeuristicLab.Services.Hive;28 27 using Microsoft.VisualStudio.TestTools.UnitTesting; 29 28 … … 31 30 [TestClass] 32 31 public class ExperimentManagerTests { 33 32 private TestContext testContextInstance; 33 public TestContext TestContext { 34 get { return testContextInstance; } 35 set { testContextInstance = value; } 36 } 34 37 35 38 [ClassInitialize] 36 39 public static void MyClassInitialize(TestContext testContext) { 37 //PluginLoader.pluginAssemblies.Any();38 40 //ServiceLocator.Instance = new MockServiceLocator(); 39 41 } … … 41 43 [TestMethod] 42 44 public void TestExperimentUpload() { 43 HiveExperimentClient hec = new HiveExperimentClient();45 var rhc = new RefreshableHiveExperiment(); 44 46 var optimizer = CreateOptimizer(); 45 hec.HiveJob = new HiveJob(optimizer); 47 rhc.HiveExperiment.HiveJobs.Add(new OptimizerHiveJob(optimizer)); 48 49 HiveClient.StartExperiment((Exception ex) => TestContext.WriteLine(ex.ToString()), rhc); 46 50 47 hec.Start(); 48 49 while (hec.ExecutionState != ExecutionState.Stopped) { 51 while (rhc.HiveExperiment.ExecutionState != Core.ExecutionState.Stopped) { 50 52 Thread.Sleep(500); 51 53 } … … 59 61 return ga; 60 62 } 61 62 63 } 63 64 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Tests/HeuristicLab.Clients.Hive.Tests-3.4.csproj
r6385 r6433 363 363 </ProjectReference> 364 364 </ItemGroup> 365 <ItemGroup /> 365 <ItemGroup> 366 <None Include="app.config" /> 367 </ItemGroup> 366 368 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 367 369 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.