diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/tests/ActivityTests.cs b/src/libraries/System.Diagnostics.DiagnosticSource/tests/ActivityTests.cs index a4d7b68d1f8eab..9984a0548dd975 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/tests/ActivityTests.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/tests/ActivityTests.cs @@ -2549,7 +2549,7 @@ public void OnError(Exception error) { } private const int MaxClockErrorMSec = 20; - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))] public void TestActivityDebuggerDisplay() { Activity activity = new Activity("TestOperation"); @@ -2562,7 +2562,7 @@ public void TestActivityDebuggerDisplay() activity.Stop(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))] public void TestActivityDebuggerProxy() { Activity activity = new Activity("TestOperation"); @@ -2577,7 +2577,7 @@ public void TestActivityDebuggerProxy() activity.Stop(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))] public void TestActivityContextDebuggerDisplay() { ActivityTraceId traceId = ActivityTraceId.CreateRandom(); @@ -2588,7 +2588,7 @@ public void TestActivityContextDebuggerDisplay() Assert.NotNull(debuggerDisplay); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))] public void TestActivityLinkDebuggerDisplay() { ActivityTraceId traceId = ActivityTraceId.CreateRandom(); @@ -2599,7 +2599,7 @@ public void TestActivityLinkDebuggerDisplay() DebuggerAttributes.ValidateDebuggerDisplayReferences(link); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))] public void TestActivityEventDebuggerDisplay() { ActivityEvent activityEvent = new ActivityEvent("TestEvent");