Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13879 for stable


Ignore:
Timestamp:
06/08/16 15:14:04 (8 years ago)
Author:
mkommend
Message:

#2557: Merged r13494, r13510 and r13676 into stable.

Location:
stable
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Common/3.3/ObjectExtensions.cs

    r12009 r13879  
    6666    ///   * string, decimal, DateTime
    6767    ///   * Arrays of types not collected
     68    ///   * All types from System.Reflection.Emit
    6869    /// </summary>
    6970    private static bool ExcludeType(Type type) {
     
    7778             typeof(Delegate).IsAssignableFrom(type) ||
    7879             typeof(Pointer).IsAssignableFrom(type) ||
    79              type == typeof(System.Reflection.Emit.SignatureHelper) ||
     80             type.Namespace == "System.Reflection.Emit" ||
    8081             (type.HasElementType && ExcludeType(type.GetElementType()));
    8182    }
  • stable/HeuristicLab.Tests

  • stable/HeuristicLab.Tests/HeuristicLab-3.3/CollectObjectGraphTest.cs

    r12009 r13879  
    4141      get { return testContextInstance; }
    4242      set { testContextInstance = value; }
     43    }
     44
     45    [TestMethod]
     46    [Description("Verify that the object graph traversal is working by checking the number of objects after traversal.")]
     47    [TestCategory("General")]
     48    [TestCategory("Essential")]
     49    [TestProperty("Time", "medium")]
     50    public void TestObjectGraphTraversal() {
     51      GeneticAlgorithm ga = (GeneticAlgorithm)XmlParser.Deserialize(@"Test Resources\GA_SymbReg.hl");
     52      var objects = ga.GetObjectGraphObjects().ToList();
     53
     54      // Should be 3982, but count may change slightly as members are added or removed
     55      Assert.IsTrue(objects.Count > 1, "Number of objects in the object graph seems to small.");
    4356    }
    4457
Note: See TracChangeset for help on using the changeset viewer.