public void Anagram_SetWord_ReturnWord() { string word = "evil"; string listCheck = "big boy"; AnagramGenerator newAnagramGenerator = new AnagramGenerator(word, listCheck); string newWord = newAnagramGenerator.GetWord(); string newListCheck = newAnagramGenerator.GetListCheck(); Assert.AreEqual(word, newWord); Assert.AreEqual(listCheck, newListCheck); }
public void GetInput_ReturnInput() { //Arrange string word = "bread"; string unbrokenList = "banana mouse"; AnagramGenerator newAnagramGenerator = new AnagramGenerator(word, unbrokenList); //Act string newWord = newAnagramGenerator.GetWord(); string newUnbrokenList = newAnagramGenerator.GetUnbrokenList(); //Assert Assert.AreEqual(word, newWord); Assert.AreEqual(newUnbrokenList, unbrokenList); }