Пример #1
0
 public void ClearEntryTest()
 {
     calculator.Number("6");
     calculator.Number("2");
     calculator.Number("1");
     calculator.Operation("+");
     calculator.Number("9");
     calculator.Number("6");
     calculator.Operation("-");
     calculator.Number("1");
     calculator.Number("1");
     Assert.AreEqual("11", calculator.Input);
     Assert.AreEqual("621 + 96 -", calculator.WholeInput);
     calculator.ClearEntry();
     Assert.AreEqual("0", calculator.Input);
     Assert.AreEqual("621 + 96 -", calculator.WholeInput);
 }
Пример #2
0
 /// <summary>
 /// Processes CE's click
 /// </summary>
 private void CE_Click(object sender, EventArgs e)
 {
     calculator.ClearEntry();
 }