From 46b77d08eac32f8d17f0cbe761bd74cd2be21ff7 Mon Sep 17 00:00:00 2001 From: ghorsington Date: Sun, 13 Nov 2022 19:39:00 +0200 Subject: [PATCH] Fix compilation error --- HarmonyTests/IL/Instructions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HarmonyTests/IL/Instructions.cs b/HarmonyTests/IL/Instructions.cs index 5ba4ce97..5b2b63a1 100644 --- a/HarmonyTests/IL/Instructions.cs +++ b/HarmonyTests/IL/Instructions.cs @@ -267,8 +267,9 @@ static void Normalize(MethodBody body) Assert.AreEqual(expectedIL, transpiledBody); } + // Doesn't seem to properly work on dotnet 6 test runner +#if false [Test] - [Ignore("Doesn't work on .NET 6 emulating .NET 4.5 FW API")] public void FixIssue45() { if (AccessTools.IsMonoRuntime) @@ -283,5 +284,6 @@ public void FixIssue45() Assert.AreEqual(29, new ILManipulator(body, false).GetRawInstructions().Count()); } +#endif } }