Changeset 17226 for branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/DeepCloneableCloningTest.cs
- Timestamp:
- 08/29/19 15:57:35 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests
- Property svn:mergeinfo changed
/branches/2435-alglib_3_15/HeuristicLab.Tests (added) merged: 17034 /trunk/HeuristicLab.Tests merged: 16997,17019,17021,17024,17033,17037,17125,17180
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/DeepCloneableCloningTest.cs
r16723 r17226 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2019Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; 27 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 28 29 using HeuristicLab.Optimization; 29 using HeuristicLab.Persistence.Default.Xml;30 30 using HeuristicLab.PluginInfrastructure; 31 31 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 34 34 [TestClass] 35 35 public class DeepCloneableCloningTest { 36 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 37 36 38 private TestContext testContextInstance; 37 39 public TestContext TestContext { … … 46 48 typeof (HeuristicLab.Problems.DataAnalysis.ClassificationEnsembleSolution), 47 49 typeof (HeuristicLab.Problems.DataAnalysis.RegressionEnsembleSolution), 48 typeof (HeuristicLab.Problems.Orienteering.DistanceMatrix), 49 typeof (HeuristicLab.Problems.PTSP.DistanceMatrix) 50 typeof (HeuristicLab.Problems.Orienteering.DistanceMatrix) 51 //TODO: include when PTSP builds again, 52 //typeof (HeuristicLab.Problems.PTSP.DistanceMatrix) 50 53 }; 51 54 excludedTypes.Add(typeof(SymbolicExpressionGrammar).Assembly.GetType("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.EmptySymbolicExpressionTreeGrammar")); … … 66 69 [TestProperty("Time", "long")] 67 70 public void TestCloningFinishedExperiment() { 68 Experiment experiment = (Experiment) XmlParser.Deserialize(@"Test Resources\SamplesExperimentFinished.hl");71 Experiment experiment = (Experiment)serializer.Deserialize(@"Test Resources\SamplesExperimentFinished.hl"); 69 72 70 73 Experiment clone = (Experiment)experiment.Clone(new Cloner());
Note: See TracChangeset
for help on using the changeset viewer.