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

    r16565 r17021  
    2222using System.IO;
    2323using System.Linq;
     24using HEAL.Attic;
    2425using HeuristicLab.Algorithms.LocalSearch;
    2526using HeuristicLab.Algorithms.VariableNeighborhoodSearch;
    2627using HeuristicLab.Data;
    2728using HeuristicLab.Encodings.PermutationEncoding;
    28 using HeuristicLab.Persistence.Default.Xml;
    2929using HeuristicLab.Problems.TravelingSalesman;
    3030using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    3434  public class VnsTspSampleTest {
    3535    private const string SampleFileName = "VNS_TSP";
     36    private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer();
    3637
    3738    [TestMethod]
     
    4142      var vns = CreateVnsTspSample();
    4243      string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension);
    43       XmlGenerator.Serialize(vns, path);
     44      serializer.Serialize(vns, path);
    4445    }
    4546    [TestMethod]
Note: See TracChangeset for help on using the changeset viewer.