예제 #1
0
        public void isEmptyTest2()
        {
            BoundedBag <string> b = new BoundedBag <string>("bag", 3);

            b.insert("one");
            Assert.IsFalse(b.isEmpty());
        }
예제 #2
0
        public void isEmptyTest3()
        {
            BoundedBag <string> b = new BoundedBag <string>("bag", 3);

            b.insert("one");
            b.remove();
            Assert.IsTrue(b.isEmpty());
        }
예제 #3
0
        public void isEmptyTest1()
        {
            BoundedBag <string> b = new BoundedBag <string>("bag", 3);

            Assert.IsTrue(b.isEmpty());
        }