Example #1
0
    public void BlinqShouldEqualLinqNativeArrayAppend([ArrayValues] int[] sourceArr)
    {
        int item     = 1;
        var source   = new NativeArray <int>(sourceArr, Allocator.Persistent);
        var expected = ExceptionAndValue(() => Linq.ToArray(Linq.Append(source, item)));
        var actual   = ExceptionAndValue(() => Linq.ToArray(Blinq.Append(source, item)));

        AssertAreEqual(expected, actual);
        source.Dispose();
    }
Example #2
0
    public void Execute()
    {
        var result = Blinq.Append(Source, Item).ToNativeList(Allocator.Temp);

        result.Dispose();
    }