public void GetOutputDataInfo()
        {
            var itemExpression = Expression.Constant(0);
            var input          = new StreamedSequenceInfo(typeof(int[]), itemExpression);
            var result         = _resultOperator.GetOutputDataInfo(input);

            Assert.That(result, Is.InstanceOf(typeof(StreamedScalarValueInfo)));
            Assert.That(result.DataType, Is.SameAs(typeof(int)));
        }
        public void GetOutputDataInfo_Covariant()
        {
            var func           = CreateFunc <IComparable, IComparable, string> ((i1, i2) => null);
            var resultOperator = new AggregateResultOperator(func);

            var itemExpression = Expression.Constant("test");
            var input          = new StreamedSequenceInfo(typeof(string[]), itemExpression);
            var result         = resultOperator.GetOutputDataInfo(input);

            Assert.That(result, Is.InstanceOf(typeof(StreamedScalarValueInfo)));
            Assert.That(result.DataType, Is.SameAs(typeof(string)));
        }