public void ShouldUnregisterToEventDroppedEvent() { EventQueueManager.Instance.GetType(); // trigger lazy initialization EventQueueManager.OnEventDropped(EventPriority.High, 1); EventQueueManager.ResetInstance(); EventQueueManager.Instance.GetType(); // trigger lazy initialization EventQueueManager.OnEventDropped(EventPriority.High, 1); Assert.AreEqual(2, TelemetryCollector.GetDataAndReset()[CounterType.DroppedHighPriorityEvent]); }