public void CreateEventLogContainerShouldNotAddIndexEntriesIfEventLogContainerMapsIsEmpty()
        {
            this.eventLogSessionContext = new EventLogSessionContext(new Dictionary <string, IEventLogContainer>());
            this.eventLogSessionContext.CreateEventLogContainerStartIndexMap();
            this.eventLogSessionContext.CreateEventLogContainerEndIndexMap();

            Assert.IsTrue(this.eventLogSessionContext.EventLogContainerStartIndexMap.Count == 0);
            Assert.IsTrue(this.eventLogSessionContext.EventLogContainerEndIndexMap.Count == 0);
        }
        public void CreateEventLogContainerShouldCreateNegativeEndIndexIfLogEntriesAreEmpty()
        {
            var dict = new Dictionary <string, IEventLogContainer>();
            var dummyEventLogContainer = new DummyEventLogContainer(false);

            dict.Add("DummyEventLog", dummyEventLogContainer);

            this.eventLogSessionContext = new EventLogSessionContext(dict);
            this.eventLogSessionContext.CreateEventLogContainerStartIndexMap();
            this.eventLogSessionContext.CreateEventLogContainerEndIndexMap();

            Assert.IsTrue(this.eventLogSessionContext.EventLogContainerStartIndexMap["DummyEventLog"] == 0);
            Assert.IsTrue(this.eventLogSessionContext.EventLogContainerEndIndexMap["DummyEventLog"] == -1);
        }
 public void CreateEventLogContainerEndIndexMapShouldCreateEndIndexMap()
 {
     this.eventLogSessionContext = new EventLogSessionContext(this.eventLogContainersMap);
     this.eventLogSessionContext.CreateEventLogContainerEndIndexMap();
     Assert.IsTrue(this.eventLogSessionContext.EventLogContainerEndIndexMap["LogName"] == 1);
 }