Exemplo n.º 1
0
 private static void IsAnagram(IWordHelper helper, string word1, List <string> words)
 {
     words.ForEach(word2 =>
     {
         if (word1 != word2)
         {
             if (helper.IsAnagram(word1, word2) && Program.IsVerbose)
             {
                 Console.WriteLine($"{word1} is an anagram of {word2}");
             }
         }
     });
 }
Exemplo n.º 2
0
 public void Test_IsAnagram_DetectsTrueAnagram()
 {
     Assert.IsTrue(_fastHelper.IsAnagram("Anna", "Nana"));
 }