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