public void GetLongestAnagrams_EmptyList_ShouldReturnEmptyList() { var anagramProcessor = new AnagramProcessor(); var lines = new List <string>(); var result = anagramProcessor.GetBiggestSetOfAnagrams(lines); Assert.That(result.Count, Is.EqualTo(0)); }
public void GetLongestAnagrams_ThreeWordsTwoAnagrams_ShouldReturnThreeWord() { var anagramProcessor = new AnagramProcessor(); var lines = new List <string> { "abc", "bca", "cabb", "abbc", "bbca", "bbb" }; var result = anagramProcessor.GetBiggestSetOfAnagrams(lines); Assert.That(result.Count, Is.EqualTo(3)); }