예제 #1
0
        public void StorageAndItem_ButaneAddToShop_ItemAmountIncrease()
        {
            IContainer ShopTest = new Shop();
            IChemical Butane = new Butane();
            ShopTest.Add(Butane);

            Assert.IsTrue(ShopTest.ItemAmount == 1);
        }
예제 #2
0
        public void StorageAndItem_CargoPantsAddToShop_ItemAmountIncrease()
        {
            IContainer ShopTest = new Shop();
            IContainer CargoPants = new CargoPants();
            ShopTest.Add((IItem)CargoPants);

            Assert.IsTrue(ShopTest.ItemAmount == 1);
        }
예제 #3
0
        public void StorageAndItem_SmallJarAddToShop_ItemAmountIncrease()
        {
            IContainer ShopTest = new Shop();
            IItem MasonJar = new SmallMasonJar();
            ShopTest.Add(MasonJar);

            Assert.IsTrue(ShopTest.ItemAmount == 1);
        }