From 74cd245ebcd714e5af93b8771635b5e11fe501bf Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Tue, 3 Dec 2019 18:21:36 +0100 Subject: [PATCH] Tests: Update all test results --- Il2CppTests/TestExpectedResults/ArraysAndPointers.cs | 6 +++--- .../GameAssembly-ArraysAndPointers-x64.cs | 6 +++--- .../GameAssembly-ArraysAndPointers-x86.cs | 6 +++--- .../TestExpectedResults/GameAssembly-Properties-x64.cs | 10 +++++----- .../TestExpectedResults/GameAssembly-Properties-x86.cs | 10 +++++----- .../TestExpectedResults/GameAssembly-References-x64.cs | 4 +++- .../TestExpectedResults/GameAssembly-References-x86.cs | 4 +++- Il2CppTests/TestExpectedResults/Properties.cs | 10 +++++----- Il2CppTests/TestExpectedResults/References.cs | 4 +++- 9 files changed, 33 insertions(+), 27 deletions(-) diff --git a/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs b/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs index bdf4937..b1ccb0c 100644 --- a/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs +++ b/Il2CppTests/TestExpectedResults/ArraysAndPointers.cs @@ -97,9 +97,9 @@ namespace Il2CppTests.TestSources // Properties public unsafe int* PointerProperty { get; set; } // 0x00562EEC-0x00562EF4 0x00562EF4-0x00562EFC - public unsafe int* this[int i] { get; } // 0x00562F10-0x00562F18 - public unsafe int this[int* p] { get; } // 0x00562F18-0x00562F20 - public unsafe float* this[float* fp] { get; } // 0x00562F20-0x00562F28 + public unsafe int* this[int i] { get => default; } // 0x00562F10-0x00562F18 + public unsafe int this[int* p] { get => default; } // 0x00562F18-0x00562F20 + public unsafe float* this[float* fp] { get => default; } // 0x00562F20-0x00562F28 // Nested types private struct fixedSizeArrayStruct // TypeDefIndex: 1814 diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs index 86d06ab..0793d89 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x64.cs @@ -97,9 +97,9 @@ namespace Il2CppTests.TestSources // Properties public unsafe int* PointerProperty { get; set; } // 0x00000001801513A0-0x00000001801513B0 0x00000001801140B0-0x00000001801140C0 - public unsafe int* this[int i] { get; } // 0x00000001800EA8C0-0x00000001800EA8D0 - public unsafe int this[int* p] { get; } // 0x00000001800EA8C0-0x00000001800EA8D0 - public unsafe float* this[float* fp] { get; } // 0x00000001800EA8C0-0x00000001800EA8D0 + public unsafe int* this[int i] { get => default; } // 0x00000001800EA8C0-0x00000001800EA8D0 + public unsafe int this[int* p] { get => default; } // 0x00000001800EA8C0-0x00000001800EA8D0 + public unsafe float* this[float* fp] { get => default; } // 0x00000001800EA8C0-0x00000001800EA8D0 // Nested types private struct fixedSizeArrayStruct // TypeDefIndex: 1814 diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs index 0436dcb..231341d 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-ArraysAndPointers-x86.cs @@ -97,9 +97,9 @@ namespace Il2CppTests.TestSources // Properties public unsafe int* PointerProperty { get; set; } // 0x100EB040-0x100EB050 0x100EB250-0x100EB260 - public unsafe int* this[int i] { get; } // 0x100C5600-0x100C5610 - public unsafe int this[int* p] { get; } // 0x100C5600-0x100C5610 - public unsafe float* this[float* fp] { get; } // 0x100C5600-0x100C5610 + public unsafe int* this[int i] { get => default; } // 0x100C5600-0x100C5610 + public unsafe int this[int* p] { get => default; } // 0x100C5600-0x100C5610 + public unsafe float* this[float* fp] { get => default; } // 0x100C5600-0x100C5610 // Nested types private struct fixedSizeArrayStruct // TypeDefIndex: 1814 diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs index c999110..5fa9d10 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x64.cs @@ -90,11 +90,11 @@ namespace Il2CppTests.TestSources protected int prop2 { get; private set; } // 0x0000000180156360-0x0000000180156370 0x00000001803E0F20-0x00000001803E0F30 protected int prop3 { private get; set; } // 0x00000001800ED060-0x00000001800ED070 0x000000018019DD90-0x000000018019DDA0 public static int prop4 { private get; set; } // 0x00000001803E0EE0-0x00000001803E0F20 0x00000001803E0F30-0x00000001803E0F30 - public string this[int i] { get; } // 0x00000001803E0E80-0x00000001803E0EB0 - public string this[double d] { get; } // 0x00000001803E0E50-0x00000001803E0E80 - public string this[long l] { set; } // 0x00000001800EA7B0-0x00000001800EA7C0 - public string this[float f] { get; set; } // 0x00000001803E0EB0-0x00000001803E0EE0 0x00000001800EA7B0-0x00000001800EA7C0 - public bool this[int i, int j] { get; } // 0x000000018010E420-0x000000018010E430 + public string this[int i] { get => default; } // 0x00000001803E0E80-0x00000001803E0EB0 + public string this[double d] { get => default; } // 0x00000001803E0E50-0x00000001803E0E80 + public string this[long l] { set {} } // 0x00000001800EA7B0-0x00000001800EA7C0 + public string this[float f] { get => default; set {} } // 0x00000001803E0EB0-0x00000001803E0EE0 0x00000001800EA7B0-0x00000001800EA7C0 + public bool this[int i, int j] { get => default; } // 0x000000018010E420-0x000000018010E430 // Constructors public Test() {} // 0x00000001800E2000-0x00000001800E2010 diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs index b8bc32f..c270118 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-Properties-x86.cs @@ -90,11 +90,11 @@ namespace Il2CppTests.TestSources protected int prop2 { get; private set; } // 0x100C5B30-0x100C5B40 0x100C5B50-0x100C5B60 protected int prop3 { private get; set; } // 0x100BFC20-0x100BFC30 0x100C5B40-0x100C5B50 public static int prop4 { private get; set; } // 0x1034DAF0-0x1034DB20 0x1034DB20-0x1034DB20 - public string this[int i] { get; } // 0x1034DA90-0x1034DAC0 - public string this[double d] { get; } // 0x1034DA60-0x1034DA90 - public string this[long l] { set; } // 0x100C5530-0x100C5540 - public string this[float f] { get; set; } // 0x1034DAC0-0x1034DAF0 0x100C5530-0x100C5540 - public bool this[int i, int j] { get; } // 0x100E5880-0x100E5890 + public string this[int i] { get => default; } // 0x1034DA90-0x1034DAC0 + public string this[double d] { get => default; } // 0x1034DA60-0x1034DA90 + public string this[long l] { set {} } // 0x100C5530-0x100C5540 + public string this[float f] { get => default; set {} } // 0x1034DAC0-0x1034DAF0 0x100C5530-0x100C5540 + public bool this[int i, int j] { get => default; } // 0x100E5880-0x100E5890 // Constructors public Test() {} // 0x100BF000-0x100BF010 diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs b/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs index 90ef83e..a25e579 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-References-x64.cs @@ -93,7 +93,9 @@ namespace Il2CppTests.TestSources // Methods public void MethodWithRefParameters(int a, ref int b, int c, ref int d) {} // 0x00000001800EA7B0-0x00000001800EA7C0 - public void MethodWithInRefOut(in int a, ref int b, out int c) {} // 0x00000001803E0E50-0x00000001803E0E60 + public void MethodWithInRefOut(in int a, ref int b, out int c) { + c = default; + } // 0x00000001803E0E50-0x00000001803E0E60 public ref float MethodWithRefReturnType() => default; // 0x00000001803E0E60-0x00000001803E0E60 } diff --git a/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs b/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs index eec277a..fdac8db 100644 --- a/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs +++ b/Il2CppTests/TestExpectedResults/GameAssembly-References-x86.cs @@ -93,7 +93,9 @@ namespace Il2CppTests.TestSources // Methods public void MethodWithRefParameters(int a, ref int b, int c, ref int d) {} // 0x100C5530-0x100C5540 - public void MethodWithInRefOut(in int a, ref int b, out int c) {} // 0x1034DA60-0x1034DA70 + public void MethodWithInRefOut(in int a, ref int b, out int c) { + c = default; + } // 0x1034DA60-0x1034DA70 public ref float MethodWithRefReturnType() => default; // 0x1034DA70-0x1034DA70 } diff --git a/Il2CppTests/TestExpectedResults/Properties.cs b/Il2CppTests/TestExpectedResults/Properties.cs index bb9eb29..ee93b05 100644 --- a/Il2CppTests/TestExpectedResults/Properties.cs +++ b/Il2CppTests/TestExpectedResults/Properties.cs @@ -90,11 +90,11 @@ namespace Il2CppTests.TestSources protected int prop2 { get; private set; } // 0x00561240-0x00561248 0x00561248-0x00561250 protected int prop3 { private get; set; } // 0x00561250-0x00561258 0x00561258-0x00561260 public static int prop4 { private get; set; } // 0x00561260-0x005612C4 0x005612C4-0x00561328 - public string this[int i] { get; } // 0x00561328-0x00561384 - public string this[double d] { get; } // 0x00561384-0x005613DC - public string this[long l] { set; } // 0x005613DC-0x005613E0 - public string this[float f] { get; set; } // 0x005613E0-0x0056143C 0x0056143C-0x00561440 - public bool this[int i, int j] { get; } // 0x00561440-0x00561448 + public string this[int i] { get => default; } // 0x00561328-0x00561384 + public string this[double d] { get => default; } // 0x00561384-0x005613DC + public string this[long l] { set {} } // 0x005613DC-0x005613E0 + public string this[float f] { get => default; set {} } // 0x005613E0-0x0056143C 0x0056143C-0x00561440 + public bool this[int i, int j] { get => default; } // 0x00561440-0x00561448 // Constructors public Test() {} // 0x00561448-0x00561448 diff --git a/Il2CppTests/TestExpectedResults/References.cs b/Il2CppTests/TestExpectedResults/References.cs index a72713c..04ade25 100644 --- a/Il2CppTests/TestExpectedResults/References.cs +++ b/Il2CppTests/TestExpectedResults/References.cs @@ -93,7 +93,9 @@ namespace Il2CppTests.TestSources // Methods public void MethodWithRefParameters(int a, ref int b, int c, ref int d) {} // 0x00561080-0x00561084 - public void MethodWithInRefOut(in int a, ref int b, out int c) {} // 0x00561084-0x00561090 + public void MethodWithInRefOut(in int a, ref int b, out int c) { + c = default; + } // 0x00561084-0x00561090 public ref float MethodWithRefReturnType() => default; // 0x00561090-0x00561098 }