private static void AssertCluster(IReadOnlyDictionary <string, IReadOnlyList <string> > expected, IReadOnlyDictionary <string, IReadOnlyList <string> > actual) { AssertHelper.AssertDictionariesEqual(expected.ToDictionary(x => x.Key, x => x.Value.ToHashSet()), actual.ToDictionary(x => x.Key, x => x.Value.ToHashSet()), HashSet <string> .CreateSetComparer()); }