Changeset 17226 for branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Persistence.Attic/PersistenceConsistencyChecks.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.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 }
Note: See TracChangeset
for help on using the changeset viewer.