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

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