Exemplo n.º 1
0
        internal static ArithmeticDivide CreateArithmeticDivide01()
        {
            ArithmeticDivide arithmeticDivide = new ArithmeticDivide();

            arithmeticDivide.ToString();
            return(arithmeticDivide);
        }
Exemplo n.º 2
0
        public void TestCreateArithmeticDivide01()
        {
            ArithmeticDivide arithmeticDivide = CreateArithmeticDivide01();

            Assert.IsNotNull(arithmeticDivide);
            #region Record State
            ValueRecorder recorder = new ValueRecorder();
            recorder.Record((OperatorPriority)arithmeticDivide.Priority);
            recorder.FinishRecording();
            #endregion
        }
Exemplo n.º 3
0
        public void TestProcessArg01()
        {
            //testing --- not primitive types are compared
            ArithmeticOp op         = new ArithmeticDivide();
            Accessor     opAccessor = ReflectionAccessor.Wrap(op);
            Evaluator    evaluater  = new Evaluator();

            Result[] argArray = new Result[2];
            Result   res1     = new Result(evaluater);
            Result   res2     = new Result(2);

            argArray[0] = res1;
            argArray[1] = res2;
            //Test Procedure Call
            opAccessor.Call("ProcessArg", evaluater, argArray);
        }
Exemplo n.º 4
0
        internal static ArithmeticOp CreateArithmeticOp03()
        {
            ArithmeticOp arithmeticOp = new ArithmeticDivide();

            return(arithmeticOp);
        }