Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8309


Ignore:
Timestamp:
07/20/12 08:52:44 (12 years ago)
Author:
mkommend
Message:

#1898: Minor modifications in CollectGASample unit test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/CollectObjectGraphTest.cs

    r7915 r8309  
    5959      TestContext.WriteLine("Time elapsed {0}", watch.Elapsed);
    6060      TestContext.WriteLine("Objects discovered: {0}", objects.Count());
    61       TestContext.WriteLine("HL objects discovered: {0}", objects.Where(o => o.GetType().Namespace.StartsWith("HeuristicLab")).Count());
     61      TestContext.WriteLine("HL objects discovered: {0}", objects.Count(o => o.GetType().Namespace.StartsWith("HeuristicLab")));
    6262      TestContext.WriteLine("");
    6363
     
    7070
    7171      foreach (string s in objects.Select(o => o.GetType().Namespace).Distinct().OrderBy(s => s)) {
    72         TestContext.WriteLine("{0}: {1}", s, objects.Where(o => o.GetType().Namespace == s).Count());
     72        TestContext.WriteLine("{0}: {1}", s, objects.Count(o => o.GetType().Namespace == s));
    7373      }
    7474      TestContext.WriteLine("");
Note: See TracChangeset for help on using the changeset viewer.