Exemple #1
0
    public void BlinqShouldEqualLinqNativeArraySequenceLongCountPredicate([ArrayValues] int[] sourceArr)
    {
        var sourceNativeArr = new NativeArray <int>(sourceArr, Allocator.Persistent);
        var expected        = ExceptionAndValue(() => Linq.LongCount(sourceNativeArr, EqualsOne.Invoke));
        var actual          = ExceptionAndValue(() => Blinq.LongCount(sourceNativeArr, EqualsOne));

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