Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/18/19 23:15:13 (5 years ago)
Author:
mkommend
Message:

#2520: Adapted all unit tests to use attic instead of the xml persistence. This affects all sample unit tests, the test resources, script unit tests and some general unit tests.

File:
1 edited

Legend:

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

    r16565 r17021  
    2121
    2222using System.IO;
    23 using System.Linq;
     23using HEAL.Attic;
    2424using HeuristicLab.Algorithms.GeneticAlgorithm;
    2525using HeuristicLab.Encodings.PermutationEncoding;
    26 using HeuristicLab.Persistence.Default.Xml;
    2726using HeuristicLab.Problems.BinPacking3D;
    2827using HeuristicLab.Selection;
     
    3433    private const string SampleFileName = "GA_BPP";
    3534
     35    private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer();
     36
    3637    [TestMethod]
    3738    [TestCategory("Samples.Create")]
     
    4041      var ga = CreateGaBppSample();
    4142      string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension);
    42       XmlGenerator.Serialize(ga, path);
     43      serializer.Serialize(ga, path);
    4344    }
    4445
Note: See TracChangeset for help on using the changeset viewer.