public void ErrorTelemetryEventsAreGeneratedOnExceptionAndIEDIF_True() { TestTelemetryChannel.Clear(); var host = new HostingContext <SimpleService, ISimpleService>() .ShouldWaitForCompletion() .IncludeDetailsInFaults(); using (host) { host.Open(); ISimpleService client = host.GetChannel(); try { client.CallFailsWithException(); } catch { } } var errors = from item in TestTelemetryChannel.CollectedData() where item is ExceptionTelemetry select item; Assert.IsTrue(errors.Count() > 0); }