diff --git a/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs index e4b7ec92f3294..a96c217711c5c 100644 --- a/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs +++ b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs @@ -42,6 +42,8 @@ public static partial class PlatformDetection public static bool IsNotWindows => !IsWindows; public static bool IsThreadingSupported => !IsBrowser; + public static bool IsBinaryFormatterSupported => !IsBrowser; + // Please make sure that you have the libgdiplus dependency installed. // For details, see https://docs.microsoft.com/dotnet/core/install/dependencies?pivots=os-macos&tabs=netcore31#libgdiplus public static bool IsDrawingSupported diff --git a/src/libraries/System.Threading.Channels/tests/ChannelClosedExceptionTests.netcoreapp.cs b/src/libraries/System.Threading.Channels/tests/ChannelClosedExceptionTests.netcoreapp.cs index 0fde76e9cb1fa..70eca33365866 100644 --- a/src/libraries/System.Threading.Channels/tests/ChannelClosedExceptionTests.netcoreapp.cs +++ b/src/libraries/System.Threading.Channels/tests/ChannelClosedExceptionTests.netcoreapp.cs @@ -9,8 +9,7 @@ namespace System.Threading.Channels.Tests { public partial class ChannelClosedExceptionTests { - [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/37648", TestPlatforms.Browser)] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsBinaryFormatterSupported))] public void Serialization_Roundtrip() { var s = new MemoryStream();