Пример #1
0
 public void preTreatment_calculation_IntegrationgTest()
 {
     var proc = new Calculate();
     proc.expression = "w(3.14)";
     proc.preTreatment();
     proc.calculation();
     Assert.AreEqual("3.14:cos", proc.polish);
     Assert.AreEqual("-1.00", proc.result);
 }
Пример #2
0
 public void calculation_aClac_tCalc_stackToS_IntegrationTest()
 {
     var proc = new Calculate();
     proc.polishRecord.Add("3.92");
     proc.polishRecord.Add("3.08");
     proc.polishRecord.Add("+");
     proc.calculation();
     Assert.AreEqual("7.00", proc.result);
     Assert.AreEqual("3.92:3.08:+", proc.polish);
 }