diff --git a/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs b/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs index 31af15049c26ec..49a9046729f361 100644 --- a/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs +++ b/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs @@ -277,7 +277,7 @@ public static void LoadNonRuntimeAssembly() Assert.IsType(error.InnerException); } - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsAssemblyLoadingSupported), nameof(PlatformDetection.IsCoreCLR))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsAssemblyLoadingSupported), nameof(PlatformDetection.IsCoreCLR), nameof(PlatformDetection.HasAssemblyFiles))] public static void InvalidCastException_DifferentALC_ShowsAssemblyInfo() { var alc = new AssemblyLoadContext("TestALC"); @@ -298,7 +298,7 @@ public static void InvalidCastException_DifferentALC_ShowsAssemblyInfo() Assert.Contains("TestALC", ice.Message); } - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsAssemblyLoadingSupported), nameof(PlatformDetection.IsCoreCLR))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsAssemblyLoadingSupported), nameof(PlatformDetection.IsCoreCLR), nameof(PlatformDetection.HasAssemblyFiles))] public static void InvalidCastException_GenericTypeArg_DifferentALC_ShowsAssemblyInfo() { var alc = new AssemblyLoadContext("TestALC");