public void CheckWinFrom_OutOfBoardErrorY_ThrowsException() { // Arrange var TestBoard = new TicTacToeBoard(1, 1, 1); // Act var result = TestBoard.CheckWinFrom(TicTacToeBoard.Player.Player_X, 0, 4); // Assert -- exception was thrown }
public void CheckWinFrom_WinnerExists_ReturnsTrue() { // Arrange var TestBoard = new TicTacToeBoard(1, 1, 1); TestBoard.PlayMove(TicTacToeBoard.Player.Player_X, 0, 0); // Act var result = TestBoard.CheckWinFrom(TicTacToeBoard.Player.Player_X, 0, 0); // Assert Assert.IsTrue(result); }
public void CheckWinFrom_NoWinner_ReturnsFalse() { // Arrange var TestBoard = new TicTacToeBoard(2, 2, 2); TestBoard.PlayMove(TicTacToeBoard.Player.Player_X, 0, 0); // Act var result = TestBoard.CheckWinFrom(TicTacToeBoard.Player.Player_X, 0, 0); // Assert Assert.IsFalse(result); }