예제 #1
0
    public void BlinqShouldEqualLinqNativeArrayDistinct([ArrayValues] int[] sourceArr)
    {
        var source   = new NativeArray <int>(sourceArr, Allocator.Persistent);
        var expected = ExceptionAndValue(() => Linq.ToArray(Linq.Distinct(source)));
        var actual   = ExceptionAndValue(() => Linq.ToArray(Blinq.Distinct(source)));

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

        result.Dispose();
    }