Example #1
0
        public void Visitor_UnaryNode_Throws()
        {
            var visitor = new TestODataExpressionVisitor();
            var node    = new UnaryOperatorNode(UnaryOperatorKind.Negate, new ConstantNode(1));

            Assert.ThrowsAny <Exception>(() => visitor.Visit(node));
        }
Example #2
0
        public void Accept_Throws_OnIncompleteTypes()
        {
            var visitor = new TestODataExpressionVisitor();
            var node    = new ConstantNode(1);

            Assert.ThrowsAny <Exception>(() => visitor.TestAccept(node, null));
        }
Example #3
0
        public void Visitor_ConvertNode_Throws()
        {
            var visitor = new TestODataExpressionVisitor();
            var node    = new ConvertNode(new ConstantNode(1), typeof(int));

            Assert.ThrowsAny <Exception>(() => visitor.Visit(node));
        }