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

    r16565 r17021  
    2222using System.IO;
    2323using System.Linq;
     24using HEAL.Attic;
    2425using HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm;
    25 using HeuristicLab.Persistence.Default.Xml;
    2626using HeuristicLab.Problems.DataAnalysis.Symbolic;
    2727using HeuristicLab.Problems.Instances.DataAnalysis;
     
    3232  [TestClass]
    3333  public class GeSymbolicRegressionSampleTest {
     34
     35    private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer();
     36
    3437    #region artificial ant
    3538    private const string GeArtificialAntSampleFileName = "GE_ArtificialAnt";
     
    4144      var geaa = CreateGeArtificialAntSample();
    4245      string path = Path.Combine(SamplesUtils.SamplesDirectory, GeArtificialAntSampleFileName + SamplesUtils.SampleFileExtension);
    43       XmlGenerator.Serialize(geaa, path);
     46      serializer.Serialize(geaa, path);
    4447    }
    4548
     
    8083      var geSymbReg = CreateGeSymbolicRegressionSample();
    8184      string path = Path.Combine(SamplesUtils.SamplesDirectory, GeSymbolicRegressionSampleFileName + SamplesUtils.SampleFileExtension);
    82       XmlGenerator.Serialize(geSymbReg, path);
     85      serializer.Serialize(geSymbReg, path);
    8386    }
    8487
Note: See TracChangeset for help on using the changeset viewer.