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

    r16565 r17021  
    2222using System.IO;
    2323using System.Linq;
     24using HEAL.Attic;
    2425using HeuristicLab.Algorithms.ALPS;
    2526using HeuristicLab.Encodings.PermutationEncoding;
    2627using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    27 using HeuristicLab.Persistence.Default.Xml;
    2828using HeuristicLab.Problems.DataAnalysis.Symbolic;
    2929using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression;
     
    4040    private const string SymRegSampleFileName = "ALPSGP_SymReg";
    4141
     42    private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer();
     43
    4244    [TestMethod]
    4345    [TestCategory("Samples.Create")]
     
    4648      var alpsGa = CreateAlpsGaTspSample();
    4749      string path = Path.Combine(SamplesUtils.SamplesDirectory, TspSampleFileName + SamplesUtils.SampleFileExtension);
    48       XmlGenerator.Serialize(alpsGa, path);
     50      serializer.Serialize(alpsGa, path);
    4951    }
    5052
     
    5557      var alpsGa = CreateAlpsGaSymRegSample();
    5658      string path = Path.Combine(SamplesUtils.SamplesDirectory, SymRegSampleFileName + SamplesUtils.SampleFileExtension);
    57       XmlGenerator.Serialize(alpsGa, path);
     59      serializer.Serialize(alpsGa, path);
    5860    }
    5961
Note: See TracChangeset for help on using the changeset viewer.