internal static ArithmeticSubtract CreateArithmeticSubtract01() { ArithmeticSubtract arithmeticSubtract = new ArithmeticSubtract(); arithmeticSubtract.ToString(); return(arithmeticSubtract); }
public void TestArithmeticSubtractConstructor01() { ArithmeticSubtract arithmeticSubtract = new ArithmeticSubtract(); #region Record State ValueRecorder recorder = new ValueRecorder(); recorder.Record((OperatorPriority)arithmeticSubtract.Priority); recorder.FinishRecording(); #endregion }
public void TestCreateArithmeticSubtract01() { ArithmeticSubtract arithmeticSubtract = CreateArithmeticSubtract01(); Assert.IsNotNull(arithmeticSubtract); #region Record State ValueRecorder recorder = new ValueRecorder(); recorder.Record((OperatorPriority)arithmeticSubtract.Priority); recorder.FinishRecording(); #endregion }
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); }
internal static ArithmeticOp CreateArithmeticOp02() { ArithmeticOp arithmeticOp = new ArithmeticSubtract(); return(arithmeticOp); }