Exemplo n.º 1
0
        public void DetupletizingExpressionServices_OneWay_NotDetupletized()
        {
            var expr         = Expression.Invoke(Expression.Parameter(typeof(Func <List <int>, int>)), Expression.New(typeof(List <int>)));
            var detupletizer = new DetupletizingExpressionServices(typeof(IReactiveClientProxy));
            var actual       = detupletizer.Normalize(expr);

            AssertEqual(expr, actual);
        }
Exemplo n.º 2
0
        public void DetupletizingExpressionServices_OneWay_Lambda()
        {
            Expression <Func <int, int> >         expected = x => x;
            Expression <Func <Tuple <int>, int> > expr     = t => t.Item1;
            var detupletizer = new DetupletizingExpressionServices(typeof(IReactiveClientProxy));
            var actual       = detupletizer.Normalize(expr);

            AssertEqual(expected, actual);
        }