Exemple #1
0
        internal static ArithmeticDivide CreateArithmeticDivide01()
        {
            ArithmeticDivide arithmeticDivide = new ArithmeticDivide();

            arithmeticDivide.ToString();
            return(arithmeticDivide);
        }
Exemple #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
        }
Exemple #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);
        }
Exemple #4
0
        internal static ArithmeticOp CreateArithmeticOp03()
        {
            ArithmeticOp arithmeticOp = new ArithmeticDivide();

            return(arithmeticOp);
        }