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)
206Assert.Throws<ArgumentNullException>(() => list.FindIndex(0, null!)); //"Err_858ahia Expected null match to throw ArgumentNullException" 212Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(int.MinValue, predicate)); //"Err_948ahid Expected index=Int32.MinValue to throw ArgumentOutOfRangeException" 215Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(-1, predicate)); //"Err_328ahuaw Expected index=-1 to throw ArgumentOutOfRangeException" 218Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(list.Count + 1, predicate)); //"Err_488ajdi Expected index=list.Count + 1 to throw ArgumentOutOfRangeException" 221Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(int.MaxValue, predicate)); //"Err_238ajwisa Expected index=Int32.MaxValue to throw ArgumentOutOfRangeException" 478index = list.FindIndex(0, EqualsDelegate); 484index = list.FindIndex(0, delegate (T item) { return true; }); 488index = list.FindIndex(0, delegate (T item) { return false; }); 492index = list.FindIndex(count, delegate (T item) { return true; }); 499index = list.FindIndex(1, EqualsDelegate); 507index = list.FindIndex(1, EqualsDelegate); 512index = list.FindIndex(1, EqualsDelegate); 533index = list.FindIndex(0, EqualsDelegate); 538index = list.FindIndex(1, EqualsDelegate); 548index = list.FindIndex(0, EqualsDelegate); 553index = list.FindIndex(2, EqualsDelegate);