Exemple #1
0
        /// <summary>
        ///A test for Remove
        ///</summary>
        public void RemoveTestHelper <T>()
        {
            int degree = 2;
            BPlusTree <double> target = new BPlusTree <double>(degree);
            double             data   = 6;

            target.Add(1);
            target.Add(2);
            target.Add(3);
            target.Add(4);
            target.Add(5);
            target.Remove(data);
            SearchResult actual = target.Contains(data);

            Assert.IsNotNull(actual.SearchPath);
        }
Exemple #2
0
 public bool Contains(TItem item)
 {
     return(_btree.Contains(item));
 }