Free cookie consent management tool by TermsFeed Policy Generator

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:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • 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.