public void BlinqShouldEqualLinqNativeArrayReverse([ArrayValues] int[] sourceArr) { var source = new NativeArray <int>(sourceArr, Allocator.Persistent); var expected = ExceptionAndValue(() => Linq.ToArray(Linq.Reverse(source))); var actual = ExceptionAndValue(() => Linq.ToArray(Blinq.Reverse(source))); AssertAreEqual(expected, actual); source.Dispose(); }
public static IEnumerable <TSource> Reverse <TSource>(this IEnumerable <TSource> source) => LinqEnumerable.Reverse(source);