Пример #1
0
 public void IndexOf()
 {
     IndexOfTests.IndexOfTest(
         seq => ImmutableSegmentedList.CreateRange(seq).ToBuilder(),
         (b, v) => b.IndexOf(v),
         (b, v, i) => b.IndexOf(v, i),
         (b, v, i, c) => b.IndexOf(v, i, c),
         (b, v, i, c, eq) => b.IndexOf(v, i, c, eq));
 }
Пример #2
0
 public void LastIndexOf()
 {
     IndexOfTests.LastIndexOfTest(
         seq => ImmutableSegmentedList.CreateRange(seq).ToBuilder(),
         (b, v) => b.LastIndexOf(v),
         (b, v, eq) => b.LastIndexOf(v, b.Count > 0 ? b.Count - 1 : 0, b.Count, eq),
         (b, v, i) => b.LastIndexOf(v, i),
         (b, v, i, c) => b.LastIndexOf(v, i, c),
         (b, v, i, c, eq) => b.LastIndexOf(v, i, c, eq));
 }
 public void IndexOf()
 {
     IndexOfTests.IndexOfTest(
         seq => ImmutableSegmentedList.CreateRange(seq),
         (b, v) => b.IndexOf(v),
         (b, v, i) => System.Collections.Immutable.ImmutableList.IndexOf(b, v, i),
         (b, v, i, c) => System.Collections.Immutable.ImmutableList.IndexOf(b, v, i, c),
         (b, v, i, c, eq) => b.IndexOf(v, i, c, eq));
     IndexOfTests.IndexOfTest(
         seq => (System.Collections.Immutable.IImmutableList <int>)ImmutableSegmentedList.CreateRange(seq),
         (b, v) => b.IndexOf(v),
         (b, v, i) => System.Collections.Immutable.ImmutableList.IndexOf(b, v, i),
         (b, v, i, c) => System.Collections.Immutable.ImmutableList.IndexOf(b, v, i, c),
         (b, v, i, c, eq) => b.IndexOf(v, i, c, eq));
 }