diff --git a/src/libraries/System.ComponentModel.TypeConverter/tests/TypeDescriptorTests.cs b/src/libraries/System.ComponentModel.TypeConverter/tests/TypeDescriptorTests.cs index 00fb9b0b3a5bfd..74ec7e75e7acd0 100644 --- a/src/libraries/System.ComponentModel.TypeConverter/tests/TypeDescriptorTests.cs +++ b/src/libraries/System.ComponentModel.TypeConverter/tests/TypeDescriptorTests.cs @@ -1577,7 +1577,7 @@ private static void ExecuteAndUnload(string assemblyfile, Action assem alc.Unload(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsAssemblyLoadingSupported))] // Lack of AssemblyDependencyResolver results in assemblies that are not loaded by path to get // loaded in the default ALC, which causes problems for this test. [SkipOnPlatform(TestPlatforms.Browser, "AssemblyDependencyResolver not supported in wasm")] @@ -1621,7 +1621,7 @@ public static void TypeDescriptor_WithDefaultProvider_UnloadsUnloadableTypes() Assert.True(!weakRef.IsAlive); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsAssemblyLoadingSupported))] // Lack of AssemblyDependencyResolver results in assemblies that are not loaded by path to get // loaded in the default ALC, which causes problems for this test. [SkipOnPlatform(TestPlatforms.Browser, "AssemblyDependencyResolver not supported in wasm")]