public int PointAddTesttTest(Point point, IBinaryTree <Point> tree) { tree.Add(point); var f = tree.Find(point); return(f); }
public int BookAddTestTest(Book.Logic.Book book, IBinaryTree <Book.Logic.Book> tree) { var f = tree.Find(book); tree.Add(book); return(f); }
public void Test_Add() { IBinaryTree <byte> bt = this.CreateInstance(1); bt.Add(10); Assert.True(bt.Contains(10)); }
public void Test_Add_When_New() { IBinaryTree <byte> bt = this.CreateInstance(1); bt.Add(100); Assert.True(bt.Contains(100)); Assert.False(bt.IsEmpty); }
public void Add(T value) { tree.Add(value); }