19 references to FindLastIndex
Microsoft.CodeAnalysis (2)
ImmutableSegmentedList`1.cs (1)
264return self._list.FindLastIndex(startIndex, match);
ImmutableSegmentedList`1+ValueBuilder.cs (1)
168return ReadOnlyList.FindLastIndex(startIndex, match);
Microsoft.CodeAnalysis.UnitTests (17)
Collections\List\SegmentedList.Generic.Tests.Find.cs (17)
56Assert.Throws<ArgumentNullException>(() => list.FindLastIndex(0, null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 62Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(int.MinValue, predicate)); //"Err_948ahid Expected index=Int32.MinValue to throw ArgumentOutOfRangeException" 67Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(-1, predicate)); //"Err_328ahuaw Expected index=-1 to throw ArgumentOutOfRangeException" 71Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(list.Count + 1, predicate)); //"Err_488ajdi Expected index=list.Count + 1 to throw ArgumentOutOfRangeException" 74Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(list.Count, predicate)); //"Err_9689ajis Expected index=list.Count to throw ArgumentOutOfRangeException" 77Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(int.MaxValue, predicate)); //"Err_238ajwisa Expected index=Int32.MaxValue to throw ArgumentOutOfRangeException" 741index = list.FindLastIndex(count - 1, EqualsDelegate); 746index = list.FindLastIndex(count - 1, _alwaysTrueDelegate); 751index = list.FindLastIndex(count - 1, _alwaysFalseDelegate); 756index = list.FindLastIndex(count - 1, _alwaysTrueDelegate); 763index = list.FindLastIndex(count - 2, EqualsDelegate); 768index = list.FindLastIndex(count - 2, EqualsDelegate); 774index = list.FindLastIndex(count - 2, EqualsDelegate); 795index = list.FindLastIndex(list.Count - 1, EqualsDelegate); 800index = list.FindLastIndex(count - 1, EqualsDelegate); 810index = list.FindLastIndex(list.Count - 1, EqualsDelegate); 815index = list.FindLastIndex(list.Count - 3, EqualsDelegate);