public void TestDeleteBoard_Failed() { // Arrange var gameBoardsManager = new GameBoardsManager(); // Act var exception = Assert.ThrowsException <Exception>(() => gameBoardsManager.DeleteBoard("fake id")); // Assert Assert.AreEqual("The board fake id doesn't exist.", exception.Message); }
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); }