public void TryReadWords_WordsReadFromFilesFolder() { InputTextController.TryReadWords(@"Files\dictionary.txt", out string[] words); CollectionAssert.AreEqual(new string[] { "bad", "horrible" }, words.OrderBy(word => word).ToArray()); }
public void TryReadWords_FileDoesNotExist() { var result = InputTextController.TryReadWords("", out string[] words); Assert.IsFalse(result); }