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

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