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))); }
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 } }
public void QExprCast(ExprCastNode exprCastNode) { }