*
* @throws Exception
*/
public void test_1() throws Exception
{
Game hangman = new Game();
hangman.newGame(5, new WordGenerator(new String[] { "testing" }));
Assert.assertEquals(5, hangman.getGuessesRemaining());
Assert.assertFalse(hangman.isWon());
Assert.assertFalse(hangman.isLost());
doGuessTest(hangman, 'a', false);
Assert.assertEquals(4, hangman.getGuessesRemaining());
Assert.assertFalse(hangman.isWon());
Assert.assertFalse(hangman.isLost());
guess(hangman, 'a');
Assert.assertEquals(4, hangman.getGuessesRemaining());
Assert.assertFalse(hangman.isWon());
Assert.assertFalse(hangman.isLost());
doGuessTest(hangman, 't', true);
Assert.assertEquals(4, hangman.getGuessesRemaining());
Assert.assertFalse(hangman.isWon());
Assert.assertFalse(hangman.isLost());
doGuessTest(hangman, 'e', true);
Assert.assertEquals(4, hangman.getGuessesRemaining());
Assert.assertFalse(hangman.isWon());
Assert.assertFalse(hangman.isLost());
doGuessTest(hangman, 's', true);
Assert.assertEquals(4, hangman.getGuessesRemaining());
Assert.assertFalse(hangman.isWon());
Assert.assertFalse(hangman.isLost());
doGuessTest(hangman, 'i', true);
Assert.assertEquals(4, hangman.getGuessesRemaining());
Assert.assertFalse(hangman.isWon());
Assert.assertFalse(hangman.isLost());
doGuessTest(hangman, 'n', true);
Assert.assertEquals(4, hangman.getGuessesRemaining());
Assert.assertFalse(hangman.isWon());
Assert.assertFalse(hangman.isLost());
doGuessTest(hangman, 'g', true);
Assert.assertEquals(4, hangman.getGuessesRemaining());
Assert.assertTrue(hangman.isWon());
Assert.assertFalse(hangman.isLost());
}