From 4aefffbfab559f17b06a7943a818fa9ee3c97804 Mon Sep 17 00:00:00 2001 From: Vladimir Sadov Date: Fri, 20 Jan 2023 15:38:03 -0800 Subject: [PATCH] Make GetAssemblyName test more robust (#80878) --- .../tests/Metadata/MetadataReaderTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Reflection.Metadata/tests/Metadata/MetadataReaderTests.cs b/src/libraries/System.Reflection.Metadata/tests/Metadata/MetadataReaderTests.cs index a30606af963bf..3b946e5a80779 100644 --- a/src/libraries/System.Reflection.Metadata/tests/Metadata/MetadataReaderTests.cs +++ b/src/libraries/System.Reflection.Metadata/tests/Metadata/MetadataReaderTests.cs @@ -3090,7 +3090,7 @@ public void GetAssemblyName() if (PlatformDetection.HasAssemblyFiles) { - Assembly a = typeof(MetadataReaderTests).Assembly; + Assembly a = typeof(MetadataReader).Assembly; AssemblyName name = MetadataReader.GetAssemblyName(AssemblyPathHelper.GetAssemblyLocation(a)); Assert.Equal(new AssemblyName(a.FullName).ToString(), name.ToString());