Changeset 17226 for branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Persistence.Attic
- Timestamp:
- 08/29/19 15:57:35 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 5 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.Persistence.Attic/PersistenceConsistencyChecks.cs
r16946 r17226 3 3 using System.Linq; 4 4 using HEAL.Attic; 5 using HeuristicLab.PluginInfrastructure;6 5 using Microsoft.VisualStudio.TestTools.UnitTesting; 7 6 … … 15 14 public void CheckDuplicateGUIDs() { 16 15 // easy to produce duplicate GUIDs with copy&paste 17 18 16 var dict = new Dictionary<Guid, string>(); 19 17 var duplicates = new Dictionary<string, string>(); 20 // get all non-generic and instantiable classes which implement IContentView21 foreach (Type type in App licationManager.Manager.GetTypes(typeof(object))) {18 // using AppDomain instead of ApplicationManager so that NonDiscoverableTypes are also checked 19 foreach (Type type in AppDomain.CurrentDomain.GetAssemblies().SelectMany(x => x.GetTypes())) { 22 20 var attr = StorableTypeAttribute.GetStorableTypeAttribute(type); 23 21 if (attr == null) … … 36 34 Console.WriteLine($"{kvp.Key} has same GUID as {kvp.Value}"); 37 35 } 36 38 37 if (duplicates.Any()) Assert.Fail("Duplicate GUIDs found."); 39 38 } -
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Persistence.Attic/StorableAttributeTests.cs
r16559 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. -
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Persistence.Attic/UseCases.cs
r16594 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. … … 276 276 for (int i = 0; i < REPS; i++) { 277 277 var original = XmlParser.Deserialize(fileName); 278 byte[] buf;279 278 System.GC.Collect(); 280 279 var collection0 = System.GC.CollectionCount(0); … … 336 335 var serializer = new ProtoBufSerializer(); 337 336 foreach (var fileName in Directory.EnumerateFiles(path, "*.hl")) { 338 var original = XmlParser.Deserialize(fileName);337 var original = serializer.Deserialize(fileName); 339 338 var ok = true; 340 339 foreach (var t in original.GetObjectGraphObjects().Select(o => o.GetType())) { … … 371 370 var serializer = new ProtoBufSerializer(); 372 371 foreach (var fileName in Directory.EnumerateFiles(path, "*.hl")) { 373 var original = XmlParser.Deserialize(fileName);372 var original = serializer.Deserialize(fileName); 374 373 375 374 var exec = original as IExecutable;
Note: See TracChangeset
for help on using the changeset viewer.