19 references to FindLastIndex
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
266return self._list.FindLastIndex(startIndex, match);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
170return 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" 762index = list.FindLastIndex(count - 1, EqualsDelegate); 767index = list.FindLastIndex(count - 1, _alwaysTrueDelegate); 772index = list.FindLastIndex(count - 1, _alwaysFalseDelegate); 777index = list.FindLastIndex(count - 1, _alwaysTrueDelegate); 784index = list.FindLastIndex(count - 2, EqualsDelegate); 789index = list.FindLastIndex(count - 2, EqualsDelegate); 795index = list.FindLastIndex(count - 2, EqualsDelegate); 816index = list.FindLastIndex(list.Count - 1, EqualsDelegate); 821index = list.FindLastIndex(count - 1, EqualsDelegate); 831index = list.FindLastIndex(list.Count - 1, EqualsDelegate); 836index = list.FindLastIndex(list.Count - 3, EqualsDelegate);