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)
44
return ((SegmentedList<T> list, T value) => { return list.
IndexOf
(value, 0); });
163
Assert.Equal(expectedIndex, list.
IndexOf
(withoutDuplicates[i], (count * j)));
196
Assert.Throws<ArgumentOutOfRangeException>(() => list.
IndexOf
(element, count + 1)); //"Expect ArgumentOutOfRangeException for index greater than length of list.."
197
Assert.Throws<ArgumentOutOfRangeException>(() => list.
IndexOf
(element, count + 10)); //"Expect ArgumentOutOfRangeException for index greater than length of list.."
198
Assert.Throws<ArgumentOutOfRangeException>(() => list.
IndexOf
(element, -1)); //"Expect ArgumentOutOfRangeException for negative index."
199
Assert.Throws<ArgumentOutOfRangeException>(() => list.
IndexOf
(element, int.MinValue)); //"Expect ArgumentOutOfRangeException for negative index."