Пример #1
0
    public void BlinqShouldEqualLinqNativeArrayTake([ArrayValues] int[] sourceArr)
    {
        var count    = 5;
        var source   = new NativeArray <int>(sourceArr, Allocator.Persistent);
        var expected = ExceptionAndValue(() => Linq.ToArray(Linq.Take(source, count)));
        var actual   = ExceptionAndValue(() => Linq.ToArray(Blinq.Take(source, count)));

        AssertAreEqual(expected, actual);
        source.Dispose();
    }