Example #1
0
    public void BlinqShouldEqualLinqNativeArrayTakeWhile([ArrayValues] int[] sourceArr)
    {
        var source   = new NativeArray <int>(sourceArr, Allocator.Persistent);
        var expected = ExceptionAndValue(() => Linq.ToArray(Linq.TakeWhile(source, EqualToIndex.Invoke)));
        var actual   = ExceptionAndValue(() => Linq.ToArray(Blinq.TakeWhile(source, EqualToIndex)));

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