Beispiel #1
0
    public void BlinqShouldEqualLinqNativeArraySkip([ArrayValues] int[] sourceArr)
    {
        var count    = 5;
        var source   = new NativeArray <int>(sourceArr, Allocator.Persistent);
        var expected = ExceptionAndValue(() => Linq.ToArray(Linq.Skip(source, count)));
        var actual   = ExceptionAndValue(() => Linq.ToArray(Blinq.Skip(source, count)));

        AssertAreEqual(expected, actual);
        source.Dispose();
    }
Beispiel #2
0
 public static IEnumerable <TSource> Skip <TSource>(this IEnumerable <TSource> source, int count) =>
 LinqEnumerable.Skip(source, count);