Ejemplo n.º 1
0
        public void WordWithMultipleOfSameLetter()
        {
            wordProvider.Setup(x => x.Word).Returns("book");
            var hangermanGame = new HangerManGame(wordProvider.Object);

            hangermanGame.GuessResult('b');
            hangermanGame.GuessResult('o');
            hangermanGame.GuessResult('k');

            Assert.Equal(GameStatus.Won, hangermanGame.Status());
        }
Ejemplo n.º 2
0
        public void ReturnsTrueIfContainsTheLetter()
        {
            var contains = _hangerManGame.GuessResult('c');

            Assert.Equal(Result.CorrectGuess, contains);
        }