public void Remove()
        {
            var coll = new AvlBinaryTreeCollection <int>();

            coll.Add(0);
            coll.Remove(1);
            Assert.That(coll.Count, Is.EqualTo(1));
        }
        public void Add10000AndRemove10000()
        {
            var coll = new AvlBinaryTreeCollection <int>();
            var list = new List <int>(Enumerable.Range(0, 100000));

            Randomize(list);
            for (int i = 0; i < 100000; i++)
            {
                coll.Add(list[i]);
            }
            Assert.That(coll.Count, Is.EqualTo(100000));
            for (int i = 0; i < 75000; i++)
            {
                Assert.That(coll.Remove(list[i]), Is.True);
            }
            Assert.That(coll.Count, Is.EqualTo(25000));
        }