Exemplo n.º 1
0
 public void Positionne_l_expression_en_deuxième_expression_de_expression2()
 {
     var intVar2 = new OperandeVariable(intId, "num2");
       var ope2 = new OperatorExpression(intVar2, OPERATOR.EQUAL);
       var ope1 = new OperatorExpression(intVar, OPERATOR.EQUAL);
       ope1 = (OperatorExpression)ope1.Set(2, ope2);
       ope1 = (OperatorExpression)ope1.Set(4, intVar2);
       Assert.AreSame(intVar2, ((OperatorExpression)ope1.Expression2).Expression2);
 }
Exemplo n.º 2
0
 public void Positionne_l_expression_en_expression2()
 {
     var intVar2 = new OperandeVariable(intId, "num2");
       var tmp = new OperatorExpression(intVar, OPERATOR.EQUAL);
       tmp = (OperatorExpression)tmp.Set(2, intVar2);
       Assert.AreSame(intVar2, tmp.Expression2);
 }
Exemplo n.º 3
0
 public void Retourne_l_element_positionné_quand_position_zero()
 {
     var tmp = new OperatorExpression(intVar, OPERATOR.EQUAL);
       Assert.AreSame(intVar, ((OperatorExpression)tmp.Set(0, intVar)).Expression1);
 }
Exemplo n.º 4
0
 public void Jete_exception_si_position_inattendue()
 {
     var tmp = new OperatorExpression(intVar, OPERATOR.EQUAL);
       Assert.AreSame(intVar, tmp.Set(1, intVar));
 }