public void WhenBoardIsNotFullWithXWinnerByDiagonal_ShouldReturnWonByX()
        {
            var board = "XOOXXXOXO";
            var validator = new GameResultValidator();
            GameResult result = validator.GetResult(board);

            Assert.AreEqual(GameResult.WonByX, result);
        }
        public void WhenBoardIsFullButWithoutWinner_ShouldReturnDraw()
        {
            var board = "XOXXOXOXO";
            var validator = new GameResultValidator();
            GameResult result = validator.GetResult(board);

            Assert.AreEqual(GameResult.Draw, result);
        }
        public void WhenBoardIsFullWithOWinnerByRow_ShouldReturnWonByO()
        {
            var board = "OOOXOXOXO";
            var validator = new GameResultValidator();
            GameResult result = validator.GetResult(board);

            Assert.AreEqual(GameResult.WonByO, result);
        }
        public void WhenBoardHasOneSign_ShouldReturnNotFinished()
        {
            var board = "----O----";
            var validator = new GameResultValidator();
            GameResult result = validator.GetResult(board);

            Assert.AreEqual(GameResult.NotFinished, result);
        }
 public void GetResultDrawTest()
 {
     GameResultValidator gameResultValidator = new GameResultValidator();
     var gameResult = gameResultValidator.GetResult("XOXXOOOXX");
     Assert.AreEqual(gameResult, GameResult.Draw);
 }
 public void GetResultNotFinishedTest()
 {
     GameResultValidator gameResultValidator = new GameResultValidator();
     var gameResult = gameResultValidator.GetResult("X-XOO----");
     Assert.AreEqual(gameResult, GameResult.NotFinished);
 }
 public void GetResultWinOTest()
 {
     GameResultValidator gameResultValidator = new GameResultValidator();
     var gameResult = gameResultValidator.GetResult("X-XOOO--X");
     Assert.AreEqual(gameResult, GameResult.WonByO);
 }
 public void GetResultWinXTest()
 {
     GameResultValidator gameResultValidator = new GameResultValidator();
     var gameResult = gameResultValidator.GetResult("XXXOO----");
     Assert.AreEqual(gameResult, GameResult.WonByX);
 }