public void HangmanWordIsWordGuessed_WhenNotGuessed_ShouldReturnFalse() { var word = "cookie"; var hangmanWord = new HangmanWord(word); var actual = hangmanWord.IsWordGuessed(); Assert.IsFalse(actual); }
public void HangmanWordIsWordGuessed_WhenGuessed_ShouldReturnFalse() { var word = "cookie"; var hangmanWord = new HangmanWord(word); foreach (var ch in word) { hangmanWord.IsLetterInTheWord(ch.ToString()); } var actual = hangmanWord.IsWordGuessed(); Assert.IsTrue(actual); }