- Timestamp:
- 12/10/14 10:31:41 (9 years ago)
- Location:
- branches/ALPS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS
-
branches/ALPS/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Tests (added) merged: 11514-11515,11545,11547,11597,11600,11623
- Property svn:mergeinfo changed
-
branches/ALPS/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GAVrpSampleTest.cs
r11450 r11677 34 34 35 35 namespace HeuristicLab.Tests { 36 /// <summary>37 /// Summary description for GAVrpSampleTest38 /// </summary>39 36 [TestClass] 40 37 public class GAVrpSampleTest { 41 private const string samplesDirectory = SamplesUtils.Directory; 42 [ClassInitialize] 43 public static void MyClassInitialize(TestContext testContext) { 44 if (!Directory.Exists(samplesDirectory)) 45 Directory.CreateDirectory(samplesDirectory); 46 } 47 38 private const string SampleFileName = "GA_VRP"; 48 39 49 40 [TestMethod] … … 52 43 public void CreateGaVrpSampleTest() { 53 44 var ga = CreateGaVrpSample(); 54 XmlGenerator.Serialize(ga, @"Samples\GA_VRP.hl"); 45 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 46 XmlGenerator.Serialize(ga, path); 55 47 } 56 48 … … 70 62 private GeneticAlgorithm CreateGaVrpSample() { 71 63 GeneticAlgorithm ga = new GeneticAlgorithm(); 64 72 65 #region Problem Configuration 73 66 VehicleRoutingProblem vrpProblem = new VehicleRoutingProblem(); … … 117 110 .Single(), true); 118 111 #endregion 112 119 113 return ga; 120 114 }
Note: See TracChangeset
for help on using the changeset viewer.