예제 #1
0
        public void getHiddenWordIsCorrect()
        {
            // Arrange
            WordToGuess  wordToGuess = new WordToGuess();
            const string THE_WORD    = "jellybean";

            wordToGuess.setWord(THE_WORD);

            // Act
            string actualHiddenWord = wordToGuess.getHiddenWord();

            // Assert
            const string EXPECTED_HIDDEN_WORD = "_ _ _ _ _ _ _ _ _ ";

            Assert.AreEqual(EXPECTED_HIDDEN_WORD, actualHiddenWord);
        }
예제 #2
0
 public string getHiddenWord()
 {
     return(wordToGuess.getHiddenWord());
 }