diff --git a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Extensibility/Implementation/OperationHolderTests.cs b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Extensibility/Implementation/OperationHolderTests.cs index 6cbb964c6..5be237245 100644 --- a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Extensibility/Implementation/OperationHolderTests.cs +++ b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/Extensibility/Implementation/OperationHolderTests.cs @@ -75,11 +75,7 @@ public void CreatingOperationHolderWithNullOriginalActivityDoesNotRestoreIt() operation.Dispose(); -#if NET6_0_OR_GREATER Assert.IsNotNull(Activity.Current); -#else - Assert.IsNull(Activity.Current); -#endif } [TestMethod]