예제 #1
0
    public void BlinqShouldEqualLinqNativeArrayExcept([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.Except(source, second)));
        var actual   = ExceptionAndValue(() => Linq.ToArray(Blinq.Except(source, second)));

        AssertAreEqual(expected, actual);
        source.Dispose();
        second.Dispose();
    }
예제 #2
0
    public void Execute()
    {
        var result = Blinq.Except(Source, Second).ToNativeList(Allocator.Temp);

        result.Dispose();
    }