public void Clear() { var trie = new StringTrie <bool> { { "ABC", false }, { "AB", false }, { "ADE", false }, { "ABCDE", false } }; trie.Clear(); Assert.Empty(trie); }
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")); }
/// <summary> /// Clears all interned URIs /// </summary> public static void Clear() { _uris.Clear(); }