public void TestBoardExist_False() { // Arrange var gameBoardsManager = new GameBoardsManager(); // Act var exist = gameBoardsManager.BoardExist("fake id"); // Assert Assert.IsFalse(exist); }
public void TestBoardExist_True() { // Arrange var gameBoardsManager = new GameBoardsManager(); var board = new GameBoard(); var id = gameBoardsManager.AddBoard(board); // Act var exist = gameBoardsManager.BoardExist(id); // Assert Assert.IsTrue(exist); }
public void TestDeleteBoard_Success() { // Arrange var gameBoardsManager = new GameBoardsManager(); var board = new GameBoard(); var id = gameBoardsManager.AddBoard(board); // Act gameBoardsManager.DeleteBoard(id); // Assert var exist = gameBoardsManager.BoardExist(id); Assert.IsFalse(exist); }