19 references to FindLastIndex
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
266
return self._list.
FindLastIndex
(startIndex, match);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
170
return ReadOnlyList.
FindLastIndex
(startIndex, match);
Microsoft.CodeAnalysis.UnitTests (17)
Collections\List\SegmentedList.Generic.Tests.Find.cs (17)
56
Assert.Throws<ArgumentNullException>(() => list.
FindLastIndex
(0, null!)); //"Err_858ahia Expected null match to throw ArgumentNullException"
62
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(int.MinValue, predicate)); //"Err_948ahid Expected index=Int32.MinValue to throw ArgumentOutOfRangeException"
67
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(-1, predicate)); //"Err_328ahuaw Expected index=-1 to throw ArgumentOutOfRangeException"
71
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(list.Count + 1, predicate)); //"Err_488ajdi Expected index=list.Count + 1 to throw ArgumentOutOfRangeException"
74
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(list.Count, predicate)); //"Err_9689ajis Expected index=list.Count to throw ArgumentOutOfRangeException"
77
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(int.MaxValue, predicate)); //"Err_238ajwisa Expected index=Int32.MaxValue to throw ArgumentOutOfRangeException"
762
index = list.
FindLastIndex
(count - 1, EqualsDelegate);
767
index = list.
FindLastIndex
(count - 1, _alwaysTrueDelegate);
772
index = list.
FindLastIndex
(count - 1, _alwaysFalseDelegate);
777
index = list.
FindLastIndex
(count - 1, _alwaysTrueDelegate);
784
index = list.
FindLastIndex
(count - 2, EqualsDelegate);
789
index = list.
FindLastIndex
(count - 2, EqualsDelegate);
795
index = list.
FindLastIndex
(count - 2, EqualsDelegate);
816
index = list.
FindLastIndex
(list.Count - 1, EqualsDelegate);
821
index = list.
FindLastIndex
(count - 1, EqualsDelegate);
831
index = list.
FindLastIndex
(list.Count - 1, EqualsDelegate);
836
index = list.
FindLastIndex
(list.Count - 3, EqualsDelegate);