コード例 #1
0
 public void ClickOnThBackspaceButtonTest()
 {
     calculator.AddNumber("1");
     Assert.AreEqual("1", calculator.CurrentEntry);
     calculator.Backspace();
     Assert.AreEqual("", calculator.CurrentEntry);
 }
コード例 #2
0
 /// <summary>
 /// Click backspace button.
 /// </summary>
 private void buttonBackspace_Click(object sender, EventArgs e) => calculator.Backspace();