Exemplo n.º 1
0
        public void Game_not_Win_When_Game_Start()
        {
            hangman.type(ANY_CHAR)
            .checkGameWin(mockAfterGameWin);

            mockAfterGameWin.DidNotReceive();
        }
        public void Game_not_Over_When_Game_Start()
        {
            hangman.type(ANY_CHAR)
            .checkGameOver(mockAfterGameOver);

            mockAfterGameOver.DidNotReceive();
        }
Exemplo n.º 3
0
        public void discovered_when_type_a_contained_consonant()
        {
            HangmanForTest hangman = new HangmanForTest("word");

            hangman.type(CONTAINED_CONSONANT);

            Assert.AreEqual("wo__", hangman.discovered());
        }
        public void used_when_type_a_vowel()
        {
            hangman.type(VOWEL);

            Assert.AreEqual(ALL_VOWELS, hangman.used());
        }
Exemplo n.º 5
0
        public void tries_when_type_a_vowel()
        {
            hangman.type(VOWEL);

            Assert.AreEqual(MAX_TRIES - 1, hangman.tries());
        }