Skip to content

Commit

Permalink
one more revert of [] syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Feb 19, 2024
1 parent 5f87799 commit 125a6d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HarmonyTests/Tools/TestFieldRefAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reflection;

Expand Down Expand Up @@ -585,6 +586,7 @@ public void Test_ClassStatic_PublicLong()
}

[Test]
[SuppressMessage("Style", "IDE0300")]
public void Test_ClassStatic_PrivateReadonlyString()
{
Assert.Multiple(() =>
Expand All @@ -611,7 +613,7 @@ public void Test_ClassStatic_PrivateReadonlyString()
TestSuite_Class<AccessToolsClass, AccessToolsClass, IComparable>(
field, "field4test", expectedCaseToConstraint);
TestSuite_Class<AccessToolsClass, AccessToolsClass, IEnumerable<string>>(
field, ["should always throw"], IncompatibleFieldType(expectedCaseToConstraint));
field, new[] { "should always throw" }, IncompatibleFieldType(expectedCaseToConstraint));
TestSuite_Class<AccessToolsClass, AccessToolsClass, int>(
field, 1337, IncompatibleFieldType(expectedCaseToConstraint));
});
Expand Down

0 comments on commit 125a6d7

Please sign in to comment.