public void TestGetEnumerator() { TestActivateLogging(); Logger logger = (Logger)_module.Logger; IModuleLogger child1 = logger.GetChild("MyChildLogger"); IModuleLogger child2 = logger.GetChild("MyChildLogger", typeof(Object)); IModuleLogger child3 = logger.GetChild("MyOtherChildLogger"); IModuleLogger child4 = logger.GetChild("MyOtherChildLogger", typeof(Object)); IModuleLogger grandchild1 = child1.GetChild("MyGrandChildLogger", typeof(Object)); IModuleLogger grandchild2 = child1.GetChild("MyOtherGrandChildLogger", typeof(Object)); Assert.AreEqual(1, _loggerManagement.Count(), "Number of main loggers"); Assert.AreEqual(2, logger.Count(), "Number of children"); Assert.AreEqual(2, child1.Count(), "First number of grandchildren"); Assert.AreEqual(0, child3.Count(), "Second number of grandchildren"); }