7 references to IndexOf
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
203=> ReadOnlyList.IndexOf(item, index);
Microsoft.CodeAnalysis.UnitTests (6)
Collections\List\SegmentedList.Generic.Tests.IndexOf.cs (6)
44return ((SegmentedList<T> list, T value) => { return list.IndexOf(value, 0); }); 163Assert.Equal(expectedIndex, list.IndexOf(withoutDuplicates[i], (count * j))); 196Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, count + 1)); //"Expect ArgumentOutOfRangeException for index greater than length of list.." 197Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, count + 10)); //"Expect ArgumentOutOfRangeException for index greater than length of list.." 198Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, -1)); //"Expect ArgumentOutOfRangeException for negative index." 199Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, int.MinValue)); //"Expect ArgumentOutOfRangeException for negative index."