Пример #1
0
    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();
    }
Пример #2
0
 public static IEnumerable <TSource> Reverse <TSource>(this IEnumerable <TSource> source) =>
 LinqEnumerable.Reverse(source);