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

    r16565 r17021  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using HEAL.Attic;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
    2728using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2829using HeuristicLab.Optimization;
    29 using HeuristicLab.Persistence.Default.Xml;
    3030using HeuristicLab.PluginInfrastructure;
    3131using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    3434  [TestClass]
    3535  public class DeepCloneableCloningTest {
     36    private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer();
     37
    3638    private TestContext testContextInstance;
    3739    public TestContext TestContext {
     
    6668    [TestProperty("Time", "long")]
    6769    public void TestCloningFinishedExperiment() {
    68       Experiment experiment = (Experiment)XmlParser.Deserialize(@"Test Resources\SamplesExperimentFinished.hl");
     70      Experiment experiment = (Experiment)serializer.Deserialize(@"Test Resources\SamplesExperimentFinished.hl");
    6971
    7072      Experiment clone = (Experiment)experiment.Clone(new Cloner());
Note: See TracChangeset for help on using the changeset viewer.