public void GameEngineContainsLetter() { char letter = 'd'; Game game = new Game(new InitialState()); game.Run(); GameEngine.GuessLetter(game, letter); }
public void WordIsLetterAsNonLetter() { char letter = '$'; Game game = new Game(new InitialState()); game.Run(); GameEngine.GuessLetter(game, letter); }
public void TheLetterAsSomeChar() { char letter = '%'; Game game = new Game(new InitialState()); game.Run(); GameEngine.GuessLetter(game, letter); }
public void GameRunTest() { Game game = new Game(new InitialState()); game.Run(); }
public void DecodeCommandTests() { Game game = new Game(new InitialState()); game.Run(); string testExampleWord = "computer"; string testDecodeCommand = "help"; CommandInterpreter.Decode(testDecodeCommand); // CommandInterpreter decodeCommandWord = new CommandInterpreter(testDecodeCommand); // var decodeCommand = CommandInterpreter.AssignGameDelegate(GetGameDelegate); // Assert.IsNotNull(decodeCommandWord); Assert.AreEqual(game.Word, testExampleWord); }