From 125a6d7e34424f39dd44046868550cd46f581613 Mon Sep 17 00:00:00 2001 From: Andreas Pardeike Date: Mon, 19 Feb 2024 23:06:39 +0100 Subject: [PATCH] one more revert of [] syntax --- HarmonyTests/Tools/TestFieldRefAccess.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HarmonyTests/Tools/TestFieldRefAccess.cs b/HarmonyTests/Tools/TestFieldRefAccess.cs index 7723ad0e..65e04a3d 100644 --- a/HarmonyTests/Tools/TestFieldRefAccess.cs +++ b/HarmonyTests/Tools/TestFieldRefAccess.cs @@ -5,6 +5,7 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; @@ -585,6 +586,7 @@ public void Test_ClassStatic_PublicLong() } [Test] + [SuppressMessage("Style", "IDE0300")] public void Test_ClassStatic_PrivateReadonlyString() { Assert.Multiple(() => @@ -611,7 +613,7 @@ public void Test_ClassStatic_PrivateReadonlyString() TestSuite_Class( field, "field4test", expectedCaseToConstraint); TestSuite_Class>( - field, ["should always throw"], IncompatibleFieldType(expectedCaseToConstraint)); + field, new[] { "should always throw" }, IncompatibleFieldType(expectedCaseToConstraint)); TestSuite_Class( field, 1337, IncompatibleFieldType(expectedCaseToConstraint)); });