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

            Assert.IsFalse(result);
        }