public void Clear() { var trie = new TrieDictionary <char, bool> { { "ABC", false }, { "AB", false }, { "ADE", false }, { "ABCDE", false } }; trie.Clear(); Assert.AreEqual(0, trie.Count); }
public void ContainsKeyClear() { var trie = new TrieDictionary <char, bool> { { "ABC", false }, { "AB", false }, { "ADE", false }, { "ABCDE", false } }; trie.Clear(); Assert.IsFalse(trie.ContainsKey("ABC")); Assert.IsFalse(trie.ContainsKey("AB")); Assert.IsFalse(trie.ContainsKey("ADE")); Assert.IsFalse(trie.ContainsKey("ABCDE")); }