Example #1
0
        public void ReturnNaughtPlayerAsWinnerWithDiagonal()
        {
            var winChecker = new WinChecker();

            Assert.IsTrue(winChecker.HasPlayerWon(
                              new[]
            {
                _, _, O,
                _, O, _,
                O, _, _
            },
                              PlayerGlyph.Naught));
        }
Example #2
0
        public void ReturnCrossPlayerAsWinnerWithDiagonal()
        {
            var winChecker = new WinChecker();

            Assert.IsTrue(winChecker.HasPlayerWon(
                              new[]
            {
                X, _, _,
                _, X, _,
                _, _, X
            },
                              PlayerGlyph.Cross));
        }