public void TestPutAll() { // Generate random strings Dictionary <string, string> randoms = new Dictionary <string, string>(); for (int i = 0; i < 1000; i++) { string random = System.Guid.NewGuid().ToString(); randoms[random] = random; } // Insert them PatriciaTrie <string> trie = new PatriciaTrie <string>(); trie.PutAll(randoms); // Get and test them foreach (KeyValuePair <string, string> random in randoms) { Assert.AreEqual(random.Value, trie[random.Key]); Assert.IsTrue(trie.ContainsKey(random.Key)); } }