From ae3ac219921e36ab8e8b181313714e78c07664f1 Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Mon, 18 Apr 2022 19:12:42 +1000 Subject: [PATCH] Add test for Il2CppSystem.Array --- src/Tests/TestClass.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Tests/TestClass.cs b/src/Tests/TestClass.cs index faaa333..30b7efc 100644 --- a/src/Tests/TestClass.cs +++ b/src/Tests/TestClass.cs @@ -174,6 +174,7 @@ namespace UnityExplorer.Tests public static Il2CppSystem.Collections.IDictionary IL2CPP_IDict; public static Il2CppSystem.Collections.IList IL2CPP_IList; public static Dictionary IL2CPP_BoxedDict; + public static Il2CppSystem.Array IL2CPP_NonGenericArray; public static Il2CppSystem.Object IL2CPP_BoxedInt; public static Il2CppSystem.Int32 IL2CPP_Int; @@ -187,6 +188,9 @@ namespace UnityExplorer.Tests private static void Init_IL2CPP() { + ExplorerCore.Log("IL2CPP 0: Non-generic array"); + IL2CPP_NonGenericArray = new Il2CppStructArray(5).TryCast(); + ExplorerCore.Log($"IL2CPP 1: Il2Cpp Dictionary"); IL2CPP_Dict = new Il2CppSystem.Collections.Generic.Dictionary(); IL2CPP_Dict.Add("key1", "value1");