Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/31/14 10:26:09 (9 years ago)
Author:
jkarder
Message:

#2211:

  • updated/added unit tests
    • added AssemblyInitialize method to load all plugins, create output directories for (script) samples and initialize the MainForm
    • script code is now stored in test resource files
    • refactored unit tests
  • updated (script) samples
  • added Test.cmd
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/Samples/IslandGaTspSampleTest.cs

    r11450 r11514  
    3434  [TestClass]
    3535  public class UnitTest1 {
    36     private const string samplesDirectory = SamplesUtils.Directory;
    37     [ClassInitialize]
    38     public static void MyClassInitialize(TestContext testContext) {
    39       if (!Directory.Exists(samplesDirectory))
    40         Directory.CreateDirectory(samplesDirectory);
    41     }
     36    private const string SampleFileName = "IslandGA_TSP";
    4237
    4338    [TestMethod]
     
    4641    public void CreateIslandGaTspSampleTest() {
    4742      var ga = CreateIslandGaTspSample();
    48       XmlGenerator.Serialize(ga, @"Samples\IslandGA_TSP.hl");
     43      string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension);
     44      XmlGenerator.Serialize(ga, path);
    4945    }
    5046    [TestMethod]
Note: See TracChangeset for help on using the changeset viewer.