public void TicTacToeImplMustHaveGuidId() { // Given ITicTacToe game = new TicTacToeImpl(); // When / Then Assert.DoesNotThrow(() => Guid.Parse(game.GetId().ToString()), "Game's GuidId must be a Guid"); }
public void AfterAddingAGameItMustBeAccessableByGuid() { // Given IBoringToeRepository repo = new BoringToeSetRepository(); long id; ITicTacToe game = new TicTacToeImpl(); ITicTacToe testGame; // When id = repo.AddGame(game); testGame = repo.GetGameByGuid(game.GetId()); // Then Assert.AreEqual(game, testGame, "Returned game must be the same as added one"); }