public void BlinqAllShouldEqualLinqNativeArrayAll([ArrayValues] int[] sourceArr) { var source = new NativeArray <int>(sourceArr, Allocator.Persistent); var expected = ExceptionAndValue(() => Linq.All(source, EqualsZero.Invoke)); var actual = ExceptionAndValue(() => Blinq.All(source, EqualsZero)); AssertAreEqual(expected, actual); source.Dispose(); }
public static bool All <TSource>(this IEnumerable <TSource> source, Func <TSource, bool> predicate) => LinqEnumerable.All(source, predicate);
public void LinqNativeSequence() { MeasureLinq(() => Linq.All(source, GreaterThanOrEqualToZero.Invoke)).Run(); }