From 80d168a2def58b239133add7bea0cf8b2f4f2a51 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sat, 16 Nov 2019 22:15:41 +0100 Subject: [PATCH] Tests: Enable CommentAttributes in TestRunner --- Il2CppTests/TestRunner.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Il2CppTests/TestRunner.cs b/Il2CppTests/TestRunner.cs index 4458f99..f368d1a 100644 --- a/Il2CppTests/TestRunner.cs +++ b/Il2CppTests/TestRunner.cs @@ -54,8 +54,12 @@ namespace Il2CppInspector // Dump each image in the binary separately int i = 0; foreach (var il2cpp in inspectors) - new Il2CppCSharpDumper(new Il2CppModel(il2cpp)) {ExcludedNamespaces = excludedNamespaces, SuppressGenerated = true, SuppressMetadata = false} - .WriteSingleFile(testPath + @"\test-result" + (i++ > 0 ? "-" + (i - 1) : "") + ".cs"); + new Il2CppCSharpDumper(new Il2CppModel(il2cpp)) { + ExcludedNamespaces = excludedNamespaces, + SuppressGenerated = true, + SuppressMetadata = false, + CommentAttributes = true + }.WriteSingleFile(testPath + @"\test-result" + (i++ > 0 ? "-" + (i - 1) : "") + ".cs"); // Compare test result with expected result for (i = 0; i < inspectors.Count; i++) {