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/GAGroupingProblemSampleTest.cs

    r16565 r17021  
    2121
    2222using System.IO;
     23using HEAL.Attic;
    2324using HeuristicLab.Algorithms.GeneticAlgorithm;
    2425using HeuristicLab.Encodings.LinearLinkageEncoding;
    25 using HeuristicLab.Persistence.Default.Xml;
    2626using HeuristicLab.Problems.Programmable;
    2727using HeuristicLab.Selection;
     
    3232  public class GAGroupingProblemSampleTest {
    3333    private const string SampleFileName = "GA_Grouping";
     34
     35    private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer();
     36
    3437    #region Code
    3538    private const string ProblemCode = @"
     
    9699      var ga = CreateGaGroupingProblemSample();
    97100      string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension);
    98       XmlGenerator.Serialize(ga, path);
     101      serializer.Serialize(ga, path);
    99102    }
    100103
Note: See TracChangeset for help on using the changeset viewer.