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); }
public string getHiddenWord() { return(wordToGuess.getHiddenWord()); }