Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2019-12-20 02:33:43 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-12-20 02:34:40 +0300
commit7926498255800de2da1243f3c12b5b571b4f1006 (patch)
treed2fbae564d314f47b9e48f5c9bd3f011247dc9fb
parentf3815a94011e12cbce7ce2e41328f5faa54cad0e (diff)
Fix reflection test to work with splitted assemblies
(cherry picked from commit 9724859cec205954206171961739ee7df8740dd4)
-rw-r--r--src/System.Runtime/tests/System/Reflection/ModuleTests.cs4
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