Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas committed Jul 15, 2024
1 parent fab6746 commit 1a0f669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/dlls/mscorrc/mscorrc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_HOST_ASSEMBLY_RESOLVER_ASSEMBLY_ALREADY_LOADED_IN_CONTEXT "Assembly with same name is already loaded"
IDS_HOST_ASSEMBLY_RESOLVER_DYNAMICALLY_EMITTED_ASSEMBLIES_UNSUPPORTED "Dynamically emitted assemblies are unsupported during host-based resolution."
IDS_HOST_ASSEMBLY_RESOLVER_DYNAMICALLY_EMITTED_ASSEMBLIES_UNSUPPORTED "Dynamically emitted assemblies are unsupported for AssemblyLoadContext resolution."
END

STRINGTABLE DISCARDABLE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@ class RefEmitLoadContext : AssemblyLoadContext
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/31804", TestRuntimes.Mono)]
public static void LoadRefEmitAssembly()
{
AssemblyLoadContext alc = new RefEmitLoadContext();
Assembly asm = alc.LoadFromAssemblyName(new AssemblyName("MyAssembly"));
Assert.Equal(AssemblyLoadContext.Default, AssemblyLoadContext.GetLoadContext(asm));
Assert.Throws<InvalidOperationException>(() => alc.LoadFromAssemblyName(new AssemblyName("MyAssembly")));
}
}
}

0 comments on commit 1a0f669

Please sign in to comment.