From 0ab22359e166f987f550746cee815be218f60985 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 16 Apr 2025 23:47:01 +1000 Subject: [PATCH] Make `CustomCollectionTests.TestSortedListRemoveAfter` generic --- .../Common/CustomCollections/CustomCollectionTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Tests/Common/CustomCollections/CustomCollectionTests.cs b/src/BizHawk.Tests/Common/CustomCollections/CustomCollectionTests.cs index 0c8ae4b98c..dba62dd99d 100644 --- a/src/BizHawk.Tests/Common/CustomCollections/CustomCollectionTests.cs +++ b/src/BizHawk.Tests/Common/CustomCollections/CustomCollectionTests.cs @@ -54,9 +54,10 @@ namespace BizHawk.Tests.Common.CustomCollections [DataRow(new[] {1, 5, 9, 10, 11, 12}, new[] {1, 5, 9}, 9)] [DataRow(new[] { 2, 3 }, new[] { 2, 3 }, 5)] [DataRow(new[] { 4, 7 }, new int[] { }, 0)] - public void TestSortedListRemoveAfter(int[] before, int[] after, int removeItem) + public void TestSortedListRemoveAfter(T[] before, T[] after, T removeItem) + where T : IComparable { - var sortlist = new SortedList(before); + SortedList sortlist = new(before); sortlist.RemoveAfter(removeItem); CollectionAssert.AreEqual(after, sortlist); }