Esempio n. 1
0
        public void FindExistingElem_OneElemArray_Test()
        {
            Beap b = new Beap();

            b.Insert(5);

            Assert.AreEqual(true, b.Find(5));
        }
Esempio n. 2
0
        public void FindAbsentElem_FullArray_Test(int toFind)
        {
            Beap b = new Beap();

            b.Insert(8);
            b.Insert(4);
            b.Insert(10);
            b.Insert(2);
            b.Insert(7);

            Assert.AreEqual(false, b.Find(toFind));
        }
Esempio n. 3
0
        public void FindExistingElem_FullArray_Test(int toFind)
        {
            Beap b = new Beap();

            b.Insert(8);
            b.Insert(4);
            b.Insert(10);
            b.Insert(2);
            b.Insert(7);

            Assert.AreEqual(true, b.Find(toFind));
        }