public void SortByAnagrams_Test() { var input = new[] { "bad", "a", "dab", "can", "a", "nac" }; var actual = SortService.SortByAnagrams(input); Assert.AreEqual(new string[] { "a", "a", "bad", "dab", "can", "nac" }, actual); }