public void Test_Contains_False_SamePrefix() { T trie = new T(); trie.Add(VALUE_1); Assert.False(trie.Contains(VALUE_1[0..4]));
public void Test_Add_And_Get_True() { T trie = new T(); trie.Add(VALUE_1); Assert.True(trie.Contains(VALUE_1)); }
public void Test_Contains() { T trie = new T(); trie.Add(VALUE_1); trie.Add("SAXON"); Assert.True(trie.Contains(VALUE_1)); Assert.True(trie.Contains("SAXON")); }
public void Test_Contains_Throws_ArgumentNull_When_Null() { T trie = new T(); Assert.Throws <ArgumentNullException>(() => trie.Contains(null !)); }