public void TestAddRange() { // Generate random strings var randoms = Enumerable.Range(0, 10000).Select(_ => Guid.NewGuid().ToString()).Select(r => new KeyValuePair <string, string>(r, r)).ToArray(); // Insert them var trie = new PatriciaTrie <string>(); trie.AddRange(randoms); // Get and test them foreach (var random in randoms) { trie[random.Key].Is(random.Value); trie.ContainsKey(random.Key).IsTrue(); } }