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

    r16565 r17021  
    2121
    2222using System.IO;
     23using HEAL.Attic;
    2324using HeuristicLab.Algorithms.EvolutionStrategy;
    2425using HeuristicLab.Data;
    2526using HeuristicLab.Encodings.RealVectorEncoding;
    26 using HeuristicLab.Persistence.Default.Xml;
    2727using HeuristicLab.Problems.TestFunctions;
    2828using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    3333    private const string SampleFileName = "ES_Griewank";
    3434
     35    private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer();
     36
    3537    [TestMethod]
    3638    [TestCategory("Samples.Create")]
     
    3941      var es = CreateEsGriewankSample();
    4042      string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension);
    41       XmlGenerator.Serialize(es, path);
     43      serializer.Serialize(es, path);
    4244    }
    4345
Note: See TracChangeset for help on using the changeset viewer.