public void Clear() { var dict = new HierarchyDictionary <int, string>(); dict[new[] { 1, 2, 3 }] = "123"; dict[new[] { 1, 8, 8 }] = "188"; dict[new[] { 1, 8, 8, 0, 1 }] = "18801"; Assert.Equals(dict.Count, 3); dict.Clear(); Assert.Equals(dict.Count, 0); }