public void Visitor_UnaryNode_Throws() { var visitor = new TestODataExpressionVisitor(); var node = new UnaryOperatorNode(UnaryOperatorKind.Negate, new ConstantNode(1)); Assert.ThrowsAny <Exception>(() => visitor.Visit(node)); }
public void Accept_Throws_OnIncompleteTypes() { var visitor = new TestODataExpressionVisitor(); var node = new ConstantNode(1); Assert.ThrowsAny <Exception>(() => visitor.TestAccept(node, null)); }
public void Visitor_ConvertNode_Throws() { var visitor = new TestODataExpressionVisitor(); var node = new ConvertNode(new ConstantNode(1), typeof(int)); Assert.ThrowsAny <Exception>(() => visitor.Visit(node)); }