Example #1
0
 public string Correct(string word)
 {
     // Found
     if (_dictionaryLogic.Contains(word))
     {
         return(word);
     }
     // Changed
     if (Corrections(word, out var tmpList))
     {
         return(_formatStrings.FormatStringsToFamous(tmpList));
     }
     //Not Found
     return(_formatStrings.FormatStringToUnknown(word));
 }
Example #2
0
 public void ReturnUnknownString(string str)
 {
     Assert.AreEqual(_formatStrings.FormatStringToUnknown(str), "{" + str + "?}");
 }