public void GetBoardVerticalSize_ValidUse_Success() { // Arrange int expectedBoardVerticalSize = 3; // Act int actualBoardVerticalSize = Tictactoe.GetBoardVerticalSize(); // Assert Assert.AreEqual(expectedBoardVerticalSize, actualBoardVerticalSize); }
public void ResetBoard_ValidUse_Success() { // Arrange var ticTacToe = new Tictactoe(GetBoardButtons()); ticTacToe.StartNewGame(true, false, 0); // Act // ResetBoard method call is in the Tictactoe() ctor // Assert for (int i = 0; i < Tictactoe.GetBoardHorizontalSize(); i++) { for (int j = 0; j < Tictactoe.GetBoardVerticalSize(); j++) { bool isBoardFieldReset = ticTacToe.IsBoardFieldEmpty(i, j); Assert.AreEqual(true, isBoardFieldReset); } } }