/// <summary> /// Resets the Information-Dictionary and fills it with information from the field /// </summary> /// <author>Jannik Arndt</author> public void ResetInformation() { try { Information = new Dictionary <string, string> { { "1. " + Dimension1.Dimension.Dimensionname, DimensionContent1.Description }, { "2. " + Dimension2.Dimension.Dimensionname, DimensionContent2.Description } }; foreach (var selectedDimension in AdditionalFiltersList) { Information.Add(selectedDimension.Dimension.Dimensionname, string.Join(", ", selectedDimension.SelectedFilters.Select(dimensionContent => dimensionContent.Description))); } Information.Add("Cases in Eventlog", EventLog.Cases.Count.ToString(CultureInfo.InvariantCulture)); Information.Add("Events in Eventlog", EventLog.CountEvents().ToString(CultureInfo.InvariantCulture)); } catch (Exception) { Information = new Dictionary <string, string>(); } }
public void CountEventsTest() { EventLog log = ExampleData.EventLogExample.OneCaseEventLogWithFourOrderedEvents(); Assert.IsTrue(log.Cases.Count.Equals(log.CountEvents())); }