Ejemplo n.º 1
0
        public void FullJoinIsLazy()
        {
            var xs = new BreakingSequence <int>();
            var ys = new BreakingSequence <object>();

            Assert.DoesNotThrow(() =>
                                xs.FullJoin(ys, x => x, y => y.GetHashCode(),
                                            BreakingFunc.Of <int, object>(),
                                            BreakingFunc.Of <object, object>(),
                                            BreakingFunc.Of <int, object, object>()));
        }
Ejemplo n.º 2
0
        public void FullJoinWithHomogeneousSequencesIsLazy()
        {
            var xs = new BreakingSequence <int>();
            var ys = new BreakingSequence <int>();

            Assert.DoesNotThrow(() =>
                                xs.FullJoin(ys, e => e,
                                            BreakingFunc.Of <int, object>(),
                                            BreakingFunc.Of <int, object>(),
                                            BreakingFunc.Of <int, int, object>()));
        }