public void TestCaseInsensitiveMap() { HashSet <ConnectorAttribute> set = new HashSet <ConnectorAttribute>(); set.Add(ConnectorAttributeBuilder.Build("foo1")); set.Add(ConnectorAttributeBuilder.Build("foo2")); IDictionary <String, ConnectorAttribute> map = ConnectorAttributeUtil.ToMap(set); Assert.IsTrue(map.ContainsKey("Foo1")); Assert.IsTrue(map.ContainsKey("Foo2")); IDictionary <String, object> map2 = (IDictionary <String, object>)CloneObject(map); Assert.IsTrue(map2.ContainsKey("Foo1")); Assert.IsTrue(map2.ContainsKey("Foo2")); }