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)); }
public void ReturnUnknownString(string str) { Assert.AreEqual(_formatStrings.FormatStringToUnknown(str), "{" + str + "?}"); }