Exemple #1
0
        public void EvaluateSecondColumnWithXsAndT()
        {
            Board board = new Board(".XO..XT..TX..XO.");

            Assert.AreEqual(Status.XWon, board.Evaluate());
        }
Exemple #2
0
        public void EvaluateSecondDiagonalWithOsAndT()
        {
            Board board = new Board("...O..T..O..O...");

            Assert.AreEqual(Status.OWon, board.Evaluate());
        }
Exemple #3
0
        public void EvaluateFirstRowWithXsAndT()
        {
            Board board = new Board("XTXX");

            Assert.AreEqual(Status.XWon, board.Evaluate());
        }
Exemple #4
0
        public void EvaluateFourthColumnWithOs()
        {
            Board board = new Board("...O...O...O...O");

            Assert.AreEqual(Status.OWon, board.Evaluate());
        }
Exemple #5
0
        public void EvaluateFirstDiagonalWithXsAndT()
        {
            Board board = new Board("X....X....T....X");

            Assert.AreEqual(Status.XWon, board.Evaluate());
        }
Exemple #6
0
        public void EvaluateFirstRowWithOs()
        {
            Board board = new Board("OOOO");

            Assert.AreEqual(Status.OWon, board.Evaluate());
        }
Exemple #7
0
        public void EvaluateEmptyBoard()
        {
            Board board = new Board();

            Assert.AreEqual(Status.NotCompleted, board.Evaluate());
        }
Exemple #8
0
        public void FullBoard()
        {
            Board board = new Board("XOXTXXOOOXOXXXOO");

            Assert.AreEqual(Status.Draw, board.Evaluate());
        }
Exemple #9
0
        public void EvaluateThreeOs()
        {
            Board board = new Board("...O...O...O....");

            Assert.AreEqual(Status.NotCompleted, board.Evaluate());
        }
Exemple #10
0
        public void EvaluateSecondRowWithXs()
        {
            Board board = new Board("....XXXX");

            Assert.AreEqual(Status.XWon, board.Evaluate());
        }
Exemple #11
0
        public void EvaluateSecondRowWithOsAndT()
        {
            Board board = new Board("....OTOO");

            Assert.AreEqual(Status.OWon, board.Evaluate());
        }