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

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