Exemplo n.º 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();
    }