static void TestOwnWordsExits(string[] words, Dawg dawg) { var original = words.ToHashSet(); var dawgWords = dawg.ToHashSet(); Assert(true, original.Count == dawgWords.Count, "The hash do not contains the same words"); if (!original.IsSubsetOf(dawgWords)) { var a = original.Except(dawgWords).ToArray(); var b = dawgWords.Except(original).ToArray(); Assert(true, false, "different sets"); } foreach (var word in words) { Assert(true, dawg.Contains(word), $"DAWG Should contain {word}"); } }