Пример #1
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 LastIndexOf()
 {
     IndexOfTests.LastIndexOfTest(
         seq => ImmutableSegmentedList.CreateRange(seq),
         (b, v) => System.Collections.Immutable.ImmutableList.LastIndexOf(b, v),
         (b, v, eq) => System.Collections.Immutable.ImmutableList.LastIndexOf(b, v, eq),
         (b, v, i) => System.Collections.Immutable.ImmutableList.LastIndexOf(b, v, i),
         (b, v, i, c) => System.Collections.Immutable.ImmutableList.LastIndexOf(b, v, i, c),
         (b, v, i, c, eq) => b.LastIndexOf(v, i, c, eq));
     IndexOfTests.LastIndexOfTest(
         seq => (System.Collections.Immutable.IImmutableList <int>)ImmutableSegmentedList.CreateRange(seq),
         (b, v) => System.Collections.Immutable.ImmutableList.LastIndexOf(b, v),
         (b, v, eq) => System.Collections.Immutable.ImmutableList.LastIndexOf(b, v, eq),
         (b, v, i) => System.Collections.Immutable.ImmutableList.LastIndexOf(b, v, i),
         (b, v, i, c) => System.Collections.Immutable.ImmutableList.LastIndexOf(b, v, i, c),
         (b, v, i, c, eq) => b.LastIndexOf(v, i, c, eq));
 }