コード例 #1
0
 // 2. These elements are always used together when an item is transferred. There are many test cases where you need to transfer different items and so on.
 // This way you reuse the code instead of copy-paste it. If there is a change in the way how the item is transferred, change the workflow only here.
 // Even single line of code is changed in your tests.
 public void Sum(int firstNumber, int secondNumber)
 {
     NumberOne.SetText(firstNumber.ToString());
     NumberTwo.SetText(secondNumber.ToString());
     Compute.Click();
 }