Exemplo n.º 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();
    }
Exemplo n.º 2
0
    public void LinqNativeSequence()
    {
        var item = 32;

        MeasureLinq(() => Linq.ToList(Linq.Append(source, item))).Run();
    }