示例#1
0
        public void SetUp()
        {
            _castNodes = new ExprCastNode[2];

            _castNodes[0] = new ExprCastNode("long");
            _castNodes[0].AddChildNode(new SupportExprNode(10L, typeof(long)));

            _castNodes[1] = new ExprCastNode("" + typeof(int?).FullName + "");
            _castNodes[1].AddChildNode(new SupportExprNode(0x10, typeof(byte)));
        }
示例#2
0
        public void TestValidate()
        {
            ExprCastNode castNode = new ExprCastNode("int");

            // Test too few nodes under this node
            try
            {
                castNode.Validate(ExprValidationContextFactory.MakeEmpty());
                Assert.Fail();
            }
            catch (ExprValidationException ex)
            {
                // Expected
            }
        }
示例#3
0
 public void QExprCast(ExprCastNode exprCastNode)
 {
 }