public void BlinqShouldEqualLinqNativeArraySelect([ArrayValues] int[] sourceArr) { var source = new NativeArray <int>(sourceArr, Allocator.Persistent); var expected = ExceptionAndValue(() => Linq.ToArray(Linq.Select(source, IntToLong.Invoke))); var actual = ExceptionAndValue(() => Linq.ToArray(Blinq.Select(source, IntToLong))); AssertAreEqual(expected, actual); source.Dispose(); }
public void Execute() { var result = Blinq.Select(Source, Selector).ToNativeList(Allocator.Temp); result.Dispose(); }