Ejemplo n.º 1
0
 public void When_XGoesCorner_and_OGoesSide_Then_TheBoardIsXO0000000()
 {
     var board = new BoardState().Set(0, BoardMark.X).Set(1, BoardMark.O);
     AssertBoardPositions(board.FreePositions, 2, 3, 4, 5, 6, 7, 8);
     AssertBoardPositions(board.GetPositions(BoardMark.X), 0);
     AssertBoardPositions(board.GetPositions(BoardMark.O), 1);
 }
Ejemplo n.º 2
0
 public void When_GameNotStarted_Then_TheBoardIsEmpty()
 {
     var board = new BoardState();
     AssertBoardPositions(board.FreePositions, 0, 1, 2, 3, 4, 5, 6, 7, 8);
     AssertBoardPositions(board.GetPositions(BoardMark.X));
     AssertBoardPositions(board.GetPositions(BoardMark.O));
 }
Ejemplo n.º 3
0
 public void When_XGoesCorner_Then_TheBoardIsX00000000()
 {
     var board = new BoardState().Set(0, BoardMark.X);
     AssertBoardPositions(board.FreePositions, 1, 2, 3, 4, 5, 6, 7, 8);
     AssertBoardPositions(board.GetPositions(BoardMark.X), 0);
     AssertBoardPositions(board.GetPositions(BoardMark.O));
 }