示例#1
0
        public void There_Should_Be_No_Winner__Turn()
        {
            var checker = new TicTacToeDiagonalChecker();
            var spaces  = GetGameSpaces();

            var actual = checker.CheckWinner(TicTacToeEnum._, spaces);

            actual.ShouldBeFalse();
        }
示例#2
0
        public void There_Should_Be_Winner_O_TopRight()
        {
            var checker = new TicTacToeDiagonalChecker();
            var spaces  = GetGameSpaces();

            spaces[0, 2].Select(TicTacToeEnum.O);
            spaces[1, 1].Select(TicTacToeEnum.O);
            spaces[2, 0].Select(TicTacToeEnum.O);

            var actual = checker.CheckWinner(TicTacToeEnum.O, spaces);

            actual.ShouldBeTrue();
        }