public void AddItems() { try { for (int i = counter; i < (10000 + counter); i++) { ODDictionary.Add("Key" + i, "Value" + i); } } catch (Exception) { ExceptionThrown.Thrown = true; } }
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); }