public void FlushesOnDispose() { TelemetryChannel.ResetTelemetry(); var listener = new ApplicationInsightsTraceListener(string.Empty); listener.Dispose(); Assert.AreEqual(1, TelemetryChannel.FlushCount); }
public void TraceListenerInitializeTDoesNoThrowWhenInstrumentationKeyIsEmpty() { var listener = new ApplicationInsightsTraceListener(string.Empty); listener.Dispose(); }
public void TraceListenerInitializeDoesNotThrowWhenInstrumentationKeyIsNull() { var listener = new ApplicationInsightsTraceListener(null); listener.Dispose(); }
public void TraceListenerInitializeTDoesNoThrowWhenInstrumentationKeyIsEmpty() { var listener = new ApplicationInsightsTraceListener(string.Empty); listener.Dispose(); }
public void TraceListenerInitializeDoesNotThrowWhenInstrumentationKeyIsNull() { var listener = new ApplicationInsightsTraceListener(null); listener.Dispose(); }