18 references to FindIndex
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
240
=> _list.
FindIndex
(startIndex, match);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
150
=> ReadOnlyList.
FindIndex
(startIndex, match);
Microsoft.CodeAnalysis.UnitTests (16)
Collections\List\SegmentedList.Generic.Tests.Find.cs (16)
206
Assert.Throws<ArgumentNullException>(() => list.
FindIndex
(0, null!)); //"Err_858ahia Expected null match to throw ArgumentNullException"
212
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindIndex
(int.MinValue, predicate)); //"Err_948ahid Expected index=Int32.MinValue to throw ArgumentOutOfRangeException"
215
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindIndex
(-1, predicate)); //"Err_328ahuaw Expected index=-1 to throw ArgumentOutOfRangeException"
218
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindIndex
(list.Count + 1, predicate)); //"Err_488ajdi Expected index=list.Count + 1 to throw ArgumentOutOfRangeException"
221
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindIndex
(int.MaxValue, predicate)); //"Err_238ajwisa Expected index=Int32.MaxValue to throw ArgumentOutOfRangeException"
478
index = list.
FindIndex
(0, EqualsDelegate);
484
index = list.
FindIndex
(0, delegate (T item) { return true; });
488
index = list.
FindIndex
(0, delegate (T item) { return false; });
492
index = list.
FindIndex
(count, delegate (T item) { return true; });
499
index = list.
FindIndex
(1, EqualsDelegate);
507
index = list.
FindIndex
(1, EqualsDelegate);
512
index = list.
FindIndex
(1, EqualsDelegate);
533
index = list.
FindIndex
(0, EqualsDelegate);
538
index = list.
FindIndex
(1, EqualsDelegate);
548
index = list.
FindIndex
(0, EqualsDelegate);
553
index = list.
FindIndex
(2, EqualsDelegate);