- Timestamp:
- 11/20/19 15:01:31 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/DeepCloneableCloningTest.cs
r17254 r17359 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Data; 28 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 30 using HeuristicLab.Optimization; 30 31 using HeuristicLab.PluginInfrastructure; 31 using HeuristicLab.Problems.TravelingSalesman;32 32 using Microsoft.VisualStudio.TestTools.UnitTesting; 33 33 … … 48 48 typeof (HeuristicLab.Problems.DataAnalysis.ClassificationEnsembleSolution), 49 49 typeof (HeuristicLab.Problems.DataAnalysis.RegressionEnsembleSolution), 50 typeof (HeuristicLab.Problems.Orienteering.DistanceMatrix) 50 typeof (HeuristicLab.Problems.Orienteering.DistanceMatrix), 51 typeof (HeuristicLab.Problems.TravelingSalesman.EuclideanTSPData), 51 52 }; 52 53 excludedTypes.Add(typeof(SymbolicExpressionGrammar).Assembly.GetType("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.EmptySymbolicExpressionTreeGrammar")); 53 54 foreach (var tspData in ApplicationManager.Manager.GetTypes(typeof(ITSPData)))55 excludedTypes.Add(tspData);56 54 57 55 foreach (var symbolType in ApplicationManager.Manager.GetTypes(typeof(Symbol))) … … 129 127 130 128 foreach (object o in intersections) { 129 // check if the object is an immutable value, array, or matrix 130 if (o is IStringConvertibleMatrix m && m.ReadOnly 131 || o is IStringConvertibleValue v && v.ReadOnly 132 || o is IStringConvertibleArray a && a.ReadOnly) { 133 continue; 134 } 131 135 string typeName = o.GetType().FullName; 132 136 if (excludedTypes.Contains(o.GetType())) {
Note: See TracChangeset
for help on using the changeset viewer.