Пример #1
0
        public void GameEngineContainsLetter()
        {
            char letter = 'd';

            Game game = new Game(new InitialState());

			game.Run();

            GameEngine.GuessLetter(game, letter);
        }
Пример #2
0
        public void WordIsLetterAsNonLetter()
        {
            char letter = '$';

            Game game = new Game(new InitialState());

			game.Run();

            GameEngine.GuessLetter(game, letter);
        }
Пример #3
0
        public void TheLetterAsSomeChar()
        {
            char letter = '%';

            Game game = new Game(new InitialState());

			game.Run();

            GameEngine.GuessLetter(game, letter);
        }
Пример #4
0
		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);
        }