示例#1
0
        public void Sum(int expectedResult, params int[] values)
        {
            var calcPage = new StandardCalculatorPage(_driver);

            calcPage.Sum(values);

            calcPage.AssertResult(expectedResult);
        }
示例#2
0
        public void Return8_When_Sum4And4()
        {
            var calcPage = new StandardCalculatorPage(_driver);

            calcPage.Sum(4, 4);

            calcPage.AssertResult(8);
        }
示例#3
0
        public void Return8_When_Sum2And2And4()
        {
            // Arrange
            var calcPage = new StandardCalculatorPage(_driver);

            // Act
            calcPage.Sum(2, 2, 4);

            // Assert
            calcPage.AssertResult(8);
        }