public void InitializeDoesNotThrowWhenHttpContextIsNull() { // Arrange HttpContext.Current = null; var source = new AccountIdTelemetryInitializer(); // Act var eventTelemetry = new EventTelemetry("name"); source.Initialize(eventTelemetry); // Assert Assert.AreEqual("name", eventTelemetry.Name); }