public void TestFindLongestPrefix() { Assert.AreEqual(6, RadixTree <object> .FindLongestPrefix("abcdef", "abcdef")); Assert.AreEqual(3, RadixTree <object> .FindLongestPrefix("abcdef", "abcxyz")); Assert.AreEqual(3, RadixTree <object> .FindLongestPrefix("abc", "abcxyz")); Assert.AreEqual(3, RadixTree <object> .FindLongestPrefix("abcxyz", "abc")); Assert.AreEqual(0, RadixTree <object> .FindLongestPrefix("abc", "xyz")); }