public void NotAllowOToGoFirst() { var ticTacToeBoard = new TicTacToeBoard(); ticTacToeBoard.PlaceMarker(new OMarker(), new Position(0, 0)); ticTacToeBoard.CalculateGameState(); }
public void EnsurePlayersCannotSkipATurn() { var ticTacToeBoard = new TicTacToeBoard(); ticTacToeBoard.PlaceMarker(new XMarker(), new Position(0, 0)); ticTacToeBoard.PlaceMarker(new XMarker(), new Position(0, 1)); ticTacToeBoard.CalculateGameState(); }
public void ShowUnfinishedGameWithOneX() { var ticTacToeBoard = new TicTacToeBoard(); ticTacToeBoard.PlaceMarker(new XMarker(), new Position(0, 0)); var state = ticTacToeBoard.CalculateGameState(); Assert.That(state, Is.EqualTo(GameState.Unfinished)); }