public void GetWord_ReturnsWord_String() { //Arrange string word = "bread"; AnagramChecker newWord = new AnagramChecker(word); //Act string result = newWord.GetWord(); //Assert Assert.AreEqual(word, result); }
public void GetWord_FetchTheWord_Word() { //arrange string userWord = "word"; List <string> fakeList = new List <string> { }; AnagramChecker newAnagram = new AnagramChecker(userWord, fakeList); //act string result = newAnagram.GetWord(); //assert Assert.AreEqual(userWord, result); }
public void SetWord_SetTheWord_void() { //arrange string userWord = "word"; string newWord = "hello"; List <string> fakeList = new List <string> { }; AnagramChecker newAnagram = new AnagramChecker(userWord, fakeList); //act newAnagram.SetWord(newWord); //assert Assert.AreEqual(newWord, newAnagram.GetWord()); }