30 references to FindLastIndex
Microsoft.CodeAnalysis (4)
ImmutableSegmentedList`1.cs (1)
279
return self._list.
FindLastIndex
(startIndex, count, match);
ImmutableSegmentedList`1+ValueBuilder.cs (1)
180
return ReadOnlyList.
FindLastIndex
(startIndex, count, match);
SegmentedList`1.cs (2)
528
=>
FindLastIndex
(_size - 1, _size, match);
531
=>
FindLastIndex
(startIndex, startIndex + 1, match);
Microsoft.CodeAnalysis.UnitTests (26)
Collections\List\SegmentedList.Generic.Tests.Find.cs (26)
146
Assert.Throws<ArgumentNullException>(() => list.
FindLastIndex
(0, 0, null!)); //"Err_858ahia Expected null match to throw ArgumentNullException"
152
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(int.MinValue, 0, predicate)); //Err_948ahid Expected index=Int32.MinValue to throw ArgumentOutOfRangeException"
157
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(-1, 0, predicate)); //"Err_328ahuaw Expected index=-1 to throw ArgumentOutOfRangeException"
161
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(list.Count + 1, 0, predicate)); //"Err_488ajdi Expected index=list.Count + 1 to throw ArgumentOutOfRangeException"
164
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(list.Count, 1, predicate)); //"Err_9689ajis Expected index=list.Count to throw ArgumentOutOfRangeException"
167
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(int.MaxValue, 0, predicate)); //"Err_238ajwisa Expected index=Int32.MaxValue to throw ArgumentOutOfRangeException"
173
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(list.Count - 1, int.MinValue, predicate)); //"Err_948ahid Expected count=Int32.MinValue to throw ArgumentOutOfRangeException"
176
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(list.Count - 1, -1, predicate)); //"Err_328ahuaw Expected count=-1 to throw ArgumentOutOfRangeException"
179
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(list.Count - 1, list.Count + 1, predicate)); //"Err_488ajdi Expected count=list.Count + 1 to throw ArgumentOutOfRangeException"
182
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(list.Count - 1, int.MaxValue, predicate)); //"Err_238ajwisa Expected count=Int32.MaxValue to throw ArgumentOutOfRangeException"
190
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(count - 2, count, predicate)); //"Err_018188avbiw Expected index=1 count=list.Length to throw ArgumentOutOfRangeException"
193
Assert.Throws<ArgumentOutOfRangeException>(() => list.
FindLastIndex
(count - 1, count + 1, predicate)); //"Err_6848ajiodxbz Expected index=0 count=list.Length + 1 to throw ArgumentOutOfRangeException"
841
index = list.
FindLastIndex
(count - 1, count, EqualsDelegate);
847
index = list.
FindLastIndex
(count - 1, count, _alwaysTrueDelegate);
851
index = list.
FindLastIndex
(count - 1, count, _alwaysFalseDelegate);
857
index = list.
FindLastIndex
(0, 0, _alwaysTrueDelegate);
862
index = list.
FindLastIndex
(count - 1, count - 1, EqualsDelegate);
870
index = list.
FindLastIndex
(count - 2, count - 1, EqualsDelegate);
875
index = list.
FindLastIndex
(count - 2, count - 1, EqualsDelegate);
880
index = list.
FindLastIndex
(count - 1, count - 1, EqualsDelegate);
885
index = list.
FindLastIndex
(count - 2, count - 2, EqualsDelegate);
890
index = list.
FindLastIndex
(count - 2, count - 2, EqualsDelegate);
895
index = list.
FindLastIndex
(count - 2, count - 2, EqualsDelegate);
900
index = list.
FindLastIndex
(count - 2, count - 2, EqualsDelegate);
921
index = list.
FindLastIndex
(list.Count - 1, list.Count, EqualsDelegate);
931
index = list.
FindLastIndex
(list.Count - 1, list.Count, EqualsDelegate);