示例#1
0
        public void Clear()
        {
            var trie = new StringTrie <bool> {
                { "ABC", false }, { "AB", false }, { "ADE", false }, { "ABCDE", false }
            };

            trie.Clear();

            Assert.Empty(trie);
        }
示例#2
0
        public void ContainsKeyClear()
        {
            var trie = new StringTrie <bool> {
                { "ABC", false }, { "AB", false }, { "ADE", false }, { "ABCDE", false }
            };

            trie.Clear();

            Assert.False(trie.ContainsKey("ABC"));
            Assert.False(trie.ContainsKey("AB"));
            Assert.False(trie.ContainsKey("ADE"));
            Assert.False(trie.ContainsKey("ABCDE"));
        }
示例#3
0
 /// <summary>
 /// Clears all interned URIs
 /// </summary>
 public static void Clear()
 {
     _uris.Clear();
 }