Ejemplo n.º 1
0
        public void Count_OneElem_Test()
        {
            Beap b = new Beap();

            b.Insert(8);

            Assert.AreEqual(0, b.Count(8));
        }
Ejemplo n.º 2
0
        public void Count_FullArray_Test()
        {
            Beap b = new Beap();

            b.Insert(10);
            b.Insert(15);
            b.Insert(25);
            b.Insert(14);
            b.Insert(19);
            b.Insert(13);
            b.Insert(20);
            b.Insert(50);
            b.Insert(22);

            Assert.AreEqual(2, b.Count(14));
        }
Ejemplo n.º 3
0
        public void Count_EmptyArray_Test()
        {
            Beap b = new Beap();

            Assert.AreEqual(0, b.Count(0));
        }