예제 #1
0
        internal static ArithmeticSubtract CreateArithmeticSubtract01()
        {
            ArithmeticSubtract arithmeticSubtract = new ArithmeticSubtract();

            arithmeticSubtract.ToString();
            return(arithmeticSubtract);
        }
예제 #2
0
        public void TestArithmeticSubtractConstructor01()
        {
            ArithmeticSubtract arithmeticSubtract = new ArithmeticSubtract();

            #region Record State
            ValueRecorder recorder = new ValueRecorder();
            recorder.Record((OperatorPriority)arithmeticSubtract.Priority);
            recorder.FinishRecording();
            #endregion
        }
예제 #3
0
        public void TestCreateArithmeticSubtract01()
        {
            ArithmeticSubtract arithmeticSubtract = CreateArithmeticSubtract01();

            Assert.IsNotNull(arithmeticSubtract);
            #region Record State
            ValueRecorder recorder = new ValueRecorder();
            recorder.Record((OperatorPriority)arithmeticSubtract.Priority);
            recorder.FinishRecording();
            #endregion
        }
예제 #4
0
        public void TestAddOperator02()
        {
            Tree tree = new Tree();
            ArithmeticMultiply expression = new ArithmeticMultiply();
            ExprNode           root       = new ExprNode(expression);
            ExprNode           topnode    = new ExprNode(expression);
            ArithmeticSubtract sub        = new ArithmeticSubtract();
            ExprNode           parentnode = new ExprNode(sub);

            tree.Root = root;
            Accessor topAccessor = ReflectionAccessor.Wrap(topnode);

            topAccessor.SetField("_parent", parentnode);
            BooleanAnd booleanAndExpr = new BooleanAnd();
            Accessor   treeAccessor   = ReflectionAccessor.Wrap(tree);

            treeAccessor.SetField("_top", topnode);
            //Test Procedure Call
            tree.AddOperator(booleanAndExpr);
        }
예제 #5
0
        internal static ArithmeticOp CreateArithmeticOp02()
        {
            ArithmeticOp arithmeticOp = new ArithmeticSubtract();

            return(arithmeticOp);
        }