Beispiel #1
0
    public void BlinqShouldEqualLinqNativeArrayAnyPredicate([ArrayValues] int[] sourceArr)
    {
        var source   = new NativeArray <int>(sourceArr, Allocator.Persistent);
        var expected = ExceptionAndValue(() => Linq.Any(source, EqualsZero.Invoke));
        var actual   = ExceptionAndValue(() => Blinq.Any(source, EqualsZero));

        AssertAreEqual(expected, actual);
        source.Dispose();
    }
Beispiel #2
0
    public void BlinqAnyNativeSequence()
    {
        bool result;

        MeasureBlinq(() => result = Blinq.Any(source)).Run();
    }
Beispiel #3
0
 public void Execute()
 {
     Blinq.Any(Source, Predicate);
 }