예제 #1
0
        public void CheckSquareRightFieldIsClickable()
        {
            var playInPage = new PlayInPage(_webDriver);

            playInPage.GoToPlayInPage();
            playInPage.ClickRight();
            Thread.Sleep(500);

            var actualResult = playInPage.GetRight();

            Assert.AreEqual("x", actualResult);
        }
예제 #2
0
        public void CheckAppearClick()
        {
            var playInPage = new PlayInPage(_webDriver);

            playInPage.GoToPlayInPage();
            playInPage.ClickRight();
            Thread.Sleep(2000);

            Assert.IsTrue(
                playInPage.GetBottom() == "o" || playInPage.GetBottomLeft() == "o" || playInPage.GetBottomRight() == "o" ||
                playInPage.GetCenter() == "o" || playInPage.GetLeft() == "o" || playInPage.GetRight() == "o" || playInPage.GetTop() == "o" ||
                playInPage.GetTopLeft() == "o" || playInPage.GetTopRight() == "o");
        }
예제 #3
0
        public void CheckRefreshGame()
        {
            var playInPage = new PlayInPage(_webDriver);

            playInPage.GoToPlayInPage();
            playInPage.ClickRight();
            playInPage.ClickPlayer2();
            Thread.Sleep(3000);

            Assert.IsTrue(
                playInPage.GetBottom() == "" && playInPage.GetBottomLeft() == "" && playInPage.GetBottomRight() == "" &&
                playInPage.GetCenter() == "" && playInPage.GetLeft() == "" && playInPage.GetRight() == "" && playInPage.GetTop() == "" &&
                playInPage.GetTopLeft() == "" && playInPage.GetTopRight() == "");
        }
예제 #4
0
        public void CheckUpdateScoreForAppear()
        {
            var playInPage = new PlayInPage(_webDriver);

            playInPage.GoToPlayInPage();
            playInPage.ClickPlayer2();
            playInPage.ClickRight();
            playInPage.ClickLeft();
            playInPage.ClickTopRight();
            playInPage.ClickBottomLeft();
            playInPage.ClickCenter();
            playInPage.ClickTopLeft();
            Thread.Sleep(3000);

            var actualResult = playInPage.GetScoreAppear();

            Assert.AreEqual("1", actualResult);
        }