diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-12-20 02:33:43 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-12-20 02:33:43 +0300 |
commit | 9724859cec205954206171961739ee7df8740dd4 (patch) | |
tree | f17c2a45e2f2cf6ab9faf3859ba354e3cff77786 | |
parent | 796b89e2cd892bafa59ab063042a43827c94e976 (diff) |
Fix reflection test to work with splitted assemblies
-rw-r--r-- | src/System.Runtime/tests/System/Reflection/ModuleTests.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Runtime/tests/System/Reflection/ModuleTests.cs b/src/System.Runtime/tests/System/Reflection/ModuleTests.cs index bdcafce9ef..214fd85cd0 100644 --- a/src/System.Runtime/tests/System/Reflection/ModuleTests.cs +++ b/src/System.Runtime/tests/System/Reflection/ModuleTests.cs @@ -94,7 +94,7 @@ namespace System.Reflection.Tests public void Name() { #if MONO - Assert.EndsWith("corlib_xunit-test.dll", Module.Name); + Assert.Contains("corlib_xunit-test", Module.Name); #else Assert.Equal("system.runtime.tests.dll", Module.Name, ignoreCase: true); #endif @@ -126,7 +126,7 @@ namespace System.Reflection.Tests public void TestToString() { #if MONO - Assert.EndsWith("corlib_xunit-test.dll", Module.ToString()); + Assert.Contains("corlib_xunit-test", Module.ToString()); #else Assert.Equal("System.Runtime.Tests.dll", Module.ToString()); #endif |