Add one more failing test

This commit is contained in:
Morilli 2024-03-29 18:56:38 +01:00
parent b983bdb361
commit af9d337900
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ namespace BizHawk.Tests.Common.CollectionExtensions
{
List<string> testList = new(new[] { "a", "abc", "abcdef" });
Assert.ThrowsException<InvalidOperationException>(() => testList.BinarySearch(static s => s.Length, 4));
Assert.ThrowsException<InvalidOperationException>(() => testList.BinarySearch(static s => s.Length, 7));
Assert.AreEqual("abc", testList.BinarySearch(static s => s.Length, 3));
List<int> emptyList = new List<int>();