Exemple #1
0
        public void Clear()
        {
            var tree = new TTree <int>(2, 2);

            tree.Add(10);
            tree.Add(11);
            tree.Add(1);
            tree.Add(20);
            tree.Clear();

            Assert.AreEqual(0, tree.Count, "Invalid count");
            Assert.AreEqual(0, tree.Count, "Invalid item count");
            Assert.AreEqual(0, tree.Height, "Invalid height");
        }