Changeset 6921 for trunk/sources
- Timestamp:
- 10/13/11 15:57:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/DeepCloneableCloningTest.cs
r6915 r6921 37 37 public class DeepCloneableCloningTest { 38 38 39 [ClassInitialize] 40 public static void MyClassInitialize(TestContext testContext) { 41 PluginLoader.Assemblies.Any(); 42 } 43 39 44 public DeepCloneableCloningTest() { 40 45 excludedTypes = new HashSet<Type>(); … … 43 48 excludedTypes.Add(typeof(HeuristicLab.Problems.DataAnalysis.ClassificationEnsembleSolution)); 44 49 excludedTypes.Add(typeof(HeuristicLab.Problems.DataAnalysis.RegressionEnsembleSolution)); 50 51 foreach (var symbolType in ApplicationManager.Manager.GetTypes(typeof(HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbol))) 52 excludedTypes.Add(symbolType); 53 foreach (var grammarType in ApplicationManager.Manager.GetTypes(typeof(HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.SymbolicExpressionGrammarBase))) 54 excludedTypes.Add(grammarType); 45 55 } 46 56 … … 109 119 try { 110 120 item = (IDeepCloneable)Activator.CreateInstance(deepCloneableType, nonPublic: false); 111 } catch { continue; } // no default constructor 121 } 122 catch { continue; } // no default constructor 112 123 113 124 var clone = (IDeepCloneable)item.Clone(new Cloner()); … … 134 145 string typeName = o.GetType().FullName; 135 146 if (excludedTypes.Contains(o.GetType())) { 136 TestContext.WriteLine("Skipping excluded type " + typeName);147 //TestContext.WriteLine("Skipping excluded type " + typeName); 137 148 } else if (o is IDeepCloneable) { 138 149 string info = (o is IItem) ? ((IItem)o).ItemName + ((o is INamedItem) ? ", " + ((INamedItem)o).Name : String.Empty) : String.Empty;
Note: See TracChangeset
for help on using the changeset viewer.