Пример #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();
    }
Пример #2
0
    public void LinqNativeSequence()
    {
        var item = 32;

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