Ejemplo n.º 1
0
        public void TestAdd()
        {
            IMagicalIntBagOfMagicalEntetiesOfMagic theBag = new MagicalIntBagOfMagicalEntetiesOfMagic();

            theBag.add(13);
            Assert.IsTrue(theBag.CountNumbersInBag() == 1);
        }
Ejemplo n.º 2
0
        public void TestNumbersInBag()
        {
            IMagicalIntBagOfMagicalEntetiesOfMagic theBag = new MagicalIntBagOfMagicalEntetiesOfMagic();

            theBag.add(42);
            theBag.add(52535);
            theBag.add(3);
            theBag.CheckLowestNumber();
            Assert.IsTrue(theBag.CountNumbersInBag() == 3);
        }
Ejemplo n.º 3
0
        public void TestTheLowestNumberis()
        {
            IMagicalIntBagOfMagicalEntetiesOfMagic theBag = new MagicalIntBagOfMagicalEntetiesOfMagic();

            theBag.add(1252);
            theBag.add(2412);
            theBag.add(1953);
            theBag.add(65);
            theBag.add(19);
            theBag.add(108987678);
            theBag.CheckLowestNumber();
            Assert.IsTrue(theBag.CheckLowestNumber() == 19);
        }
Ejemplo n.º 4
0
        public void TestRemove()
        {
            IMagicalIntBagOfMagicalEntetiesOfMagic theBag = new MagicalIntBagOfMagicalEntetiesOfMagic();

            theBag.add(1252);
            theBag.add(2412);
            theBag.add(1953);
            theBag.add(65);
            theBag.add(19);
            theBag.add(108987678);
            theBag.add(1);
            theBag.add(1);
            theBag.add(1);
            theBag.add(1);
            theBag.add(1);
            theBag.remove();
            Assert.IsTrue(theBag.CountNumbersInBag() == 10);
        }