Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/18/11 10:55:14 (14 years ago)
Author:
epitzer
Message:

fix StorableConstructorTest (#1530)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceSpeedUp/HeuristicLab/3.3/Tests/StorableConstructorTest.cs

    r5306 r6231  
    2323      StringBuilder errorMessage = new StringBuilder();
    2424
    25       foreach (Type storableType in ApplicationManager.Manager.GetTypes(typeof(object))
    26         .Where(t => StorableClassAttribute.IsStorableClass(t))) {
    27         //test only types contained in HL plugin assemblies
    28         if (!PluginLoader.Assemblies.Contains(storableType.Assembly)) continue;
     25      foreach (Type storableType in ApplicationManager.Manager.GetTypes(typeof(object))) {
     26        //test only storable types contained in HL plugin assemblies
     27        if (!PluginLoader.Assemblies.Contains(storableType.Assembly) ||
     28          !storableType.GetCustomAttributes(typeof(StorableClassAttribute), false).Any())
     29          continue;
    2930
    3031        IEnumerable<ConstructorInfo> ctors = storableType.GetConstructors(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
Note: See TracChangeset for help on using the changeset viewer.