Add one more failing test
This commit is contained in:
parent
b983bdb361
commit
af9d337900
|
@ -95,6 +95,7 @@ namespace BizHawk.Tests.Common.CollectionExtensions
|
||||||
{
|
{
|
||||||
List<string> testList = new(new[] { "a", "abc", "abcdef" });
|
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, 4));
|
||||||
|
Assert.ThrowsException<InvalidOperationException>(() => testList.BinarySearch(static s => s.Length, 7));
|
||||||
Assert.AreEqual("abc", testList.BinarySearch(static s => s.Length, 3));
|
Assert.AreEqual("abc", testList.BinarySearch(static s => s.Length, 3));
|
||||||
|
|
||||||
List<int> emptyList = new List<int>();
|
List<int> emptyList = new List<int>();
|
||||||
|
|
Loading…
Reference in New Issue