Exemplo n.º 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();
    }
Exemplo n.º 2
0
    public void Execute()
    {
        var result = Blinq.Distinct(Source).ToNativeList(Allocator.Temp);

        result.Dispose();
    }