Beispiel #1
0
 public virtual void TestgetBiggestSmallest1()
 {
     NeoDatis.Btree.IBTree btree = GetBTree(3);
     btree.Insert(1, "key 1");
     btree.Insert(2, "key 2");
     btree.Insert(3, "key 3");
     btree.Insert(4, "key 4");
     btree.Insert(5, "key 5");
     AssertEquals(5, btree.GetSize());
     AssertEquals("key 5", btree.GetBiggest(btree.GetRoot(), false).GetValue());
     AssertEquals("key 1", btree.GetSmallest(btree.GetRoot(), false).GetValue());
 }