Example #1
0
        public void CalcTest()
        {
            var getNumber = CalcSteps.InputRandomNumber();

            CalcSteps.ClickOnSqureRootButton();
            CalcSteps.CheckThatInTheFieldTheCorrectOperationIsShown(getNumber);
            CalcSteps.CheckThatTheResultIsCorrect(getNumber);
            CalcSteps.ClickOnMultiplyButton();
            CalcSteps.ClickOnEqualButton();
            CalcSteps.CheckThatResultIsTheInputedNumber(getNumber);
        }
Example #2
0
        public void CalculatorTest()
        {
            var theInputedNumber = CalcSteps.InputRandomNumber();

            CalcSteps.ClickOnSqureRootButton();
            CalcSteps.CheckThatInTheFieldTheCorrectOperationIsShown(theInputedNumber);

            var expectedResult = Math.Round(Math.Sqrt(theInputedNumber), 12);

            CalcSteps.CheckThatTheResultIsCorrect(expectedResult);
            CalcSteps.ClickOnMultiplyButton();
            CalcSteps.ClickOnEqualButton();
            CalcSteps.CheckThatResultIsTheInputedNumber(theInputedNumber);
        }