- Timestamp:
- 07/10/15 16:49:32 (9 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:ignore
-
old new 23 23 bin 24 24 protoc.exe 25 obj
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
trunk/sources/HeuristicLab.Tests
- Property svn:mergeinfo changed
/branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Tests (added) merged: 11185,11289,11322,12694,12721
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/DeepCloneableCloningTest.cs
r12012 r12722 41 41 42 42 public DeepCloneableCloningTest() { 43 excludedTypes = new HashSet<Type>(); 44 excludedTypes.Add(typeof(HeuristicLab.Problems.DataAnalysis.Dataset)); 45 excludedTypes.Add(typeof(HeuristicLab.Problems.TravelingSalesman.DistanceMatrix)); 46 excludedTypes.Add(typeof(HeuristicLab.Problems.DataAnalysis.ClassificationEnsembleSolution)); 47 excludedTypes.Add(typeof(HeuristicLab.Problems.DataAnalysis.RegressionEnsembleSolution)); 43 excludedTypes = new HashSet<Type> { 44 typeof (HeuristicLab.Problems.DataAnalysis.Dataset), 45 typeof (HeuristicLab.Problems.TravelingSalesman.DistanceMatrix), 46 typeof (HeuristicLab.Problems.DataAnalysis.ClassificationEnsembleSolution), 47 typeof (HeuristicLab.Problems.DataAnalysis.RegressionEnsembleSolution), 48 typeof (HeuristicLab.Problems.Orienteering.DistanceMatrix) 49 }; 48 50 excludedTypes.Add(typeof(SymbolicExpressionGrammar).Assembly.GetType("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.EmptySymbolicExpressionTreeGrammar")); 49 51 … … 87 89 try { 88 90 item = (IDeepCloneable)Activator.CreateInstance(deepCloneableType, nonPublic: false); 89 } 90 catch { continue; } // no default constructor 91 } catch { continue; } // no default constructor 91 92 92 93 IDeepCloneable clone = null; 93 94 try { 94 95 clone = (IDeepCloneable)item.Clone(new Cloner()); 95 } 96 catch (Exception e) { 96 } catch (Exception e) { 97 97 TestContext.WriteLine(Environment.NewLine + deepCloneableType.FullName + ":"); 98 98 TestContext.WriteLine("ERROR! " + e.GetType().Name + @" was thrown during cloning.
Note: See TracChangeset
for help on using the changeset viewer.