public void TestBinaryStringRemove() { BinaryTreeSeach<string> tree = new BinaryTreeSeach<string>(); CompareInterface<string> comparator = new CompareString(); tree.InsertElement("1", comparator); tree.RemoveElement("1", comparator); Assert.IsFalse(tree.ElementExist("1", comparator)); }
public void TestBinaryIntRemomve() { BinaryTreeSeach<int> tree = new BinaryTreeSeach<int>(); CompareInterface<int> comparator = new CompareInt(); tree.InsertElement(1, comparator); tree.RemoveElement(1, comparator); Assert.IsFalse(tree.ElementExist(1, comparator)); }