Esempio n. 1
0
    public bool testNodeDup()
    {
        factory = new ASTFactory();
        factory.setMaxNodeType(49);
        AST  t = factory.create();
        bool a = t.Equals(factory.dup(t));
        bool b = !t.Equals(null);
        AST  u = factory.create(49, "", "ASTType49");
        bool c = checkNode(factory.dup(u), typeof(ASTType49), 49);
        bool d = u.Equals(factory.dup(u));

        return(a && b && c && d);
    }