public void TestConstructor()
        {
            var tree = new Rbush <int>();

            tree.Load(new RbushTestUtility <int>(ItemValueGenerators.GetSomeValueInt32).SomeData(9));
            Assert.That(tree.Height, Is.EqualTo(1));

            tree = new Rbush <int>();
            tree.Load(new RbushTestUtility <int>(ItemValueGenerators.GetSomeValueInt32).SomeData(10));
            Assert.That(tree.Height, Is.EqualTo(2));
        }
Beispiel #2
0
 public RbushIndex(int maxNodeCapacity)
 {
     _index = new Rbush <T>(_maxNodeCapacity = maxNodeCapacity);
 }