Esempio n. 1
0
 public void AddItems()
 {
     try
     {
         for (int i = counter; i < (10000 + counter); i++)
         {
             ODDictionary.Add("Key" + i, "Value" + i);
         }
     }
     catch (Exception)
     {
         ExceptionThrown.Thrown = true;
     }
 }
Esempio n. 2
0
        public void Add_StringKeyStringValue()
        {
            odDictionaryStringString.Add("Key", "Value");
            // throws exception if not found
            var odDictionaryNode = odDictionaryStringString.InnerArray.Single(filter => (filter != null && filter.Key == "Key"));

            // checks value
            Assert.AreEqual("Value", odDictionaryNode.Value);
        }