Esempio n. 1
0
        public void ExecuteInMemory()
        {
            IEnumerable items  = new[] { 1, 2, 3 };
            var         input  = new StreamedSequence(items, new StreamedSequenceInfo(typeof(int[]), Expression.Constant(0)));
            var         result = _resultOperatorWithDefault.ExecuteInMemory(input);

            Assert.That(result.Value, Is.EqualTo(1));
        }
Esempio n. 2
0
        public void ExecuteInMemory_Empty_NoDefault()
        {
            IEnumerable items = new int[0];
            var         input = new StreamedSequence(items, new StreamedSequenceInfo(typeof(int[]), Expression.Constant(0)));

            _resultOperatorNoDefault.ExecuteInMemory(input);
        }