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

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Reflection')
-rw-r--r--test/Mono.Linker.Tests.Cases/Reflection/ActivatorCreateInstance.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases/Reflection/RunClassConstructorUsedViaReflection.cs2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Reflection/ActivatorCreateInstance.cs b/test/Mono.Linker.Tests.Cases/Reflection/ActivatorCreateInstance.cs
index 7b5f97803..8f1cfae07 100644
--- a/test/Mono.Linker.Tests.Cases/Reflection/ActivatorCreateInstance.cs
+++ b/test/Mono.Linker.Tests.Cases/Reflection/ActivatorCreateInstance.cs
@@ -307,7 +307,7 @@ namespace Mono.Linker.Tests.Cases.Reflection
[Kept]
[UnrecognizedReflectionAccessPattern (typeof (Activator), nameof (Activator.CreateInstance), new Type[] { typeof (string), typeof (string) },
- messageCode: "IL2032", message: "assemblyName")]
+ messageCode: "IL2032", message: new string[] { "assemblyName" })]
private static void WithNullAssemblyName ()
{
Activator.CreateInstance (null, "Mono.Linker.Tests.Cases.Reflection.ActivatorCreateInstance+WithAssemblyNameParameterless1");
@@ -315,7 +315,7 @@ namespace Mono.Linker.Tests.Cases.Reflection
[Kept]
[UnrecognizedReflectionAccessPattern (typeof (Activator), nameof (Activator.CreateInstance), new Type[] { typeof (string), typeof (string) },
- messageCode: "IL2061", message: "NonExistingAssembly")]
+ messageCode: "IL2061", message: new string[] { "NonExistingAssembly" })]
private static void WithNonExistingAssemblyName ()
{
Activator.CreateInstance ("NonExistingAssembly", "Mono.Linker.Tests.Cases.Reflection.ActivatorCreateInstance+WithAssemblyNameParameterless1");
@@ -326,7 +326,7 @@ namespace Mono.Linker.Tests.Cases.Reflection
[Kept]
[UnrecognizedReflectionAccessPattern (typeof (Activator), nameof (Activator.CreateInstance), new Type[] { typeof (string), typeof (string), typeof (object[]) },
- messageCode: "IL2032", message: "typeName")]
+ messageCode: "IL2032", message: new string[] { "typeName" })]
private static void WithAssemblyAndUnknownTypeName ()
{
Activator.CreateInstance ("test", _typeNameField, new object[] { });
diff --git a/test/Mono.Linker.Tests.Cases/Reflection/RunClassConstructorUsedViaReflection.cs b/test/Mono.Linker.Tests.Cases/Reflection/RunClassConstructorUsedViaReflection.cs
index a4c39a145..e4670746c 100644
--- a/test/Mono.Linker.Tests.Cases/Reflection/RunClassConstructorUsedViaReflection.cs
+++ b/test/Mono.Linker.Tests.Cases/Reflection/RunClassConstructorUsedViaReflection.cs
@@ -48,7 +48,7 @@ namespace Mono.Linker.Tests.Cases.Reflection
[Kept]
[UnrecognizedReflectionAccessPattern (typeof (RuntimeHelpers), nameof (RuntimeHelpers.RunClassConstructor), new Type[] { typeof (RuntimeTypeHandle) },
- messageCode: "IL2059", message: "RunClassConstructor")]
+ messageCode: "IL2059", message: new string[] { "RunClassConstructor" })]
static void TestDataFlowType ()
{