public void TestValidate() { ExprPropertyExistsNode castNode = new ExprPropertyExistsNode(); // Test too few nodes under this node try { castNode.Validate(SupportExprValidationContextFactory.MakeEmpty()); Assert.Fail(); } catch (ExprValidationException ex) { // Expected } castNode.AddChildNode(new SupportExprNode(1)); try { castNode.Validate(SupportExprValidationContextFactory.MakeEmpty()); Assert.Fail(); } catch (ExprValidationException ex) { // Expected } }
public void SetUp() { _existsNodes = new ExprPropertyExistsNode[2]; _existsNodes[0] = new ExprPropertyExistsNode(); _existsNodes[0].AddChildNode(SupportExprNodeFactory.MakeIdentNode("dummy?", "s0")); _existsNodes[1] = new ExprPropertyExistsNode(); _existsNodes[1].AddChildNode(SupportExprNodeFactory.MakeIdentNode("BoolPrimitive?", "s0")); }
public void QExprPropExists(ExprPropertyExistsNode exprPropertyExistsNode) { }