- Timestamp:
- 05/20/15 16:41:14 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 1 deleted
- 5 edited
- 18 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPMultiplexerSampleTest.cs
r11051 r12395 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 33 33 [TestClass] 34 34 public class GPMultiplexerSampleTest { 35 private const string samplesDirectory = SamplesUtils.Directory; 36 [ClassInitialize] 37 public static void MyClassInitialize(TestContext testContext) { 38 if (!Directory.Exists(samplesDirectory)) 39 Directory.CreateDirectory(samplesDirectory); 40 } 35 private const string SampleFileName = "GP_Multiplexer"; 41 36 42 37 [TestMethod] … … 45 40 public void CreateGpMultiplexerSampleTest() { 46 41 var ga = CreateGpMultiplexerSample(); 47 var path = Path.Combine(samplesDirectory, "GP_Multiplexer.hl");42 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 48 43 XmlGenerator.Serialize(ga, path); 49 44 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPTimeSeriesSampleTest.cs
r11091 r12395 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 32 32 [TestClass] 33 33 public class GPTimeSeriesSampleTest { 34 private const string samplesDirectory = SamplesUtils.Directory; 35 [ClassInitialize] 36 public static void MyClassInitialize(TestContext testContext) { 37 if (!Directory.Exists(samplesDirectory)) 38 Directory.CreateDirectory(samplesDirectory); 39 } 34 private const string SampleFileName = "OSGP_TimeSeries"; 40 35 41 36 [TestMethod] … … 44 39 public void CreateGpTimeSeriesSampleTest() { 45 40 var ga = CreateGpTimeSeriesSample(); 46 var path = Path.Combine(samplesDirectory, "OSGP_TimeSeries.hl");41 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 47 42 XmlGenerator.Serialize(ga, path); 48 43 } -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab-3.3/Samples/SamplesUtils.cs
r11051 r12395 12 12 namespace HeuristicLab.Tests { 13 13 public static class SamplesUtils { 14 public const string Directory = @"Samples\"; 14 public const string SamplesDirectory = @"Samples\"; 15 public const string SampleFileExtension = ".hl"; 15 16 16 17 public static void RunAlgorithm(IAlgorithm a) {
Note: See TracChangeset
for help on using the changeset viewer.