/// <summary> /// Raises the event corresponding to the event arguments to all registered handlers /// </summary> /// <param name="e"> /// Contains the event data /// </param> internal void RaiseEvent(DataCollectionEventArgs e) { ValidateArg.NotNull(e, "DataCollectionEventArgs"); if (this.eventArgsToEventInvokerMap.TryGetValue(e.GetType(), out var onEvent)) { onEvent(e); } else { EqtTrace.Fail("TestPlatformDataCollectionEvents.RaiseEvent: Unrecognized data collection event of type {0}.", e.GetType().FullName); } }