public void CanAddMultiplePairsToParameterSets()
 {
     var set = new Hash();
     set["key"] = "XyfooKab";
     set["other"] = "new value";
     Assert.AreEqual("XyfooKab", set["key"].ToString());
     Assert.AreEqual("new value", set["other"].ToString());
 }
 public void CanAddParamterSetToParameterSets()
 {
     var set = new Hash();
     var auth = new Hash();
     auth["user"] = "******";
     auth["pwd"] = "test";
     set["auth"] = auth;
     Assert.AreEqual("Khaja", set["auth"]["user"].ToString());
 }
 public Hash Parse(string rawXml)
 {
     var doc = XDocument.Parse(rawXml);
     var set = new Hash();
     XNamespace schema = "AnetApi/xml/v1/schema/AnetApiSchema.xsd";
     var root = doc.Descendants(schema + "getCustomerProfileIdsResponse");
     Console.WriteLine(root);
     set["message"] = root.Descendants(schema + "messages").First().Descendants(schema + "text").First().Value;
     set["code"] = root.Descendants(schema + "messages").First().Descendants(schema + "code").First().Value;
     // set["message"] = root.Descendants(schema + "messages").First().Element("text").ToString();
     return set;
 }
 public void CanInstantiateAParameterSet()
 {
     var set = new Hash();
     Assert.NotNull(set);
 }
 public void CanConvertParameterSetsToStrings()
 {
     string foo = new Hash("some string");
     Assert.AreEqual("some string", foo);
 }
 public void CanAddDataToParameterSets()
 {
     var set = new Hash();
     set["key"] = "XyfooKab";
     Assert.AreEqual("XyfooKab", set["key"].ToString());
 }