Changeset 11677 for branches/ALPS/HeuristicLab.Tests/HeuristicLab-3.3/Samples/PsoSchwefelSampleTest.cs
- 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/PsoSchwefelSampleTest.cs
r11450 r11677 32 32 33 33 namespace HeuristicLab.Tests { 34 /// <summary>35 /// Summary description for PsoSchwefelSampleTest36 /// </summary>37 34 [TestClass] 38 35 public class PsoSchwefelSampleTest { 39 private const string samplesDirectory = SamplesUtils.Directory; 40 [ClassInitialize] 41 public static void MyClassInitialize(TestContext testContext) { 42 if (!Directory.Exists(samplesDirectory)) 43 Directory.CreateDirectory(samplesDirectory); 44 } 36 private const string SampleFileName = "PSO_Schwefel"; 45 37 46 38 [TestMethod] … … 49 41 public void CreatePsoSchwefelSampleTest() { 50 42 var pso = CreatePsoSchwefelSample(); 51 XmlGenerator.Serialize(pso, @"Samples\PSO_Schwefel.hl"); 43 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 44 XmlGenerator.Serialize(pso, path); 52 45 } 53 46 [TestMethod]
Note: See TracChangeset
for help on using the changeset viewer.