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

    r16706 r17021  
    2424using System.IO;
    2525using System.Linq;
     26using HEAL.Attic;
    2627using HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm;
    2728using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    28 using HeuristicLab.Persistence.Default.Xml;
    2929using HeuristicLab.Problems.DataAnalysis;
    3030using HeuristicLab.Problems.DataAnalysis.Symbolic;
     
    4040    private const int seed = 12345;
    4141
     42    private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer();
     43
    4244    [TestMethod]
    4345    [TestCategory("Samples.Create")]
     
    4648      var osga = CreateGpSymbolicRegressionSample();
    4749      string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension);
    48       XmlGenerator.Serialize(osga, path);
     50      serializer.Serialize(osga, path);
    4951    }
    5052    [TestMethod]
Note: See TracChangeset for help on using the changeset viewer.