示例#1
0
    public void BlinqShouldEqualLinqNativeArraySequenceEqualArray([ArrayValues] int[] sourceArr, [ArrayValues] int[] secondArr)
    {
        var sourceNativeArr = new NativeArray <int>(sourceArr, Allocator.Persistent);
        var secondNativeArr = new NativeArray <int>(secondArr, Allocator.Persistent);
        var expected        = ExceptionAndValue(() => Linq.SequenceEqual(sourceNativeArr, secondNativeArr));
        var actual          = ExceptionAndValue(() => Blinq.SequenceEqual(sourceNativeArr, secondNativeArr));

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