Пример #1
0
    public void BlinqShouldEqualLinqNativeArrayJoinNativeArray(
        [ValueSource(typeof(GroupJoinOuterValues), nameof(GroupJoinOuterValues.Values))] JoinA[] outerArr,
        [ValueSource(typeof(GroupJoinInnerValues), nameof(GroupJoinInnerValues.Values))] JoinB[] innerArr
        )
    {
        var outer    = new NativeArray <JoinA>(outerArr, Allocator.Persistent);
        var inner    = new NativeArray <JoinB>(innerArr, Allocator.Persistent);
        var expected = ExceptionAndValue(() => Linq.ToArray(Linq.GroupJoin(outer, inner, JoinAKeySelector.Invoke, JoinBKeySelector.Invoke, GroupJoinABLinqSelector)));
        var actual   = ExceptionAndValue(() => Linq.ToArray(Blinq.GroupJoin(outer, inner, JoinAKeySelector, JoinBKeySelector, GroupJoinABSelector)));

        AssertAreEqual(expected, actual);
        outer.Dispose();
        inner.Dispose();
    }
Пример #2
0
    public void Execute()
    {
        var result = Blinq.GroupJoin(Outer, Inner, OuterKeySelector, InnerKeySelector, ResultSelector).ToNativeList(Allocator.Temp);

        result.Dispose();
    }