public void TestSingularAddToTree() { string text = "content"; CityTreeNode tree = new CityTreeNode(); tree.Add(text); string result = tree.GetEntries(1)[0]; Assert.AreEqual(result, text); }
public void TestMultipleAddToTree() { List <string> text = new List <string>(new string[] { "content", "john smith", "test" }); CityTreeNode tree = new CityTreeNode(); text.ForEach(content => tree.Add(content)); List <string> results = tree.GetEntries(3); foreach (string result in results) { Assert.AreEqual(true, text.Contains(result)); } }