public void EmptyTreeLookup() { KevinBst <string> stringTree = new KevinBst <string>(); int key = 0; stringTree.Lookup(key); }
public void SingletonTreeFailedLookup() { KevinBst <string> stringTree = new KevinBst <string>(); int key = 20; string value = key.ToString(); stringTree.Insert(key, value); stringTree.Lookup(key + 1); }
public void SingletonTreeSuccessfulLookup() { KevinBst <string> stringTree = new KevinBst <string>(); int key = 20; string value = key.ToString(); stringTree.Insert(key, value); Assert.AreEqual(stringTree.Lookup(key), value); }