Ejemplo n.º 1
0
        public void TestShopInvTypes()//Test shop item types
        {
            ShopModel test  = new ShopModel(new InventoryItemsModel("test"));
            int       item1 = test.CheckItem(test.BuyItem[0].item);
            int       item2 = test.CheckItem(test.BuyItem[1].item);
            int       item3 = test.CheckItem(test.BuyWeapons[0].item);
            int       item4 = test.CheckItem(test.BuyWeapons[1].item);

            Assert.Equal(1, item1);
            Assert.Equal(1, item2);
            Assert.Equal(0, item3);
            Assert.Equal(0, item4);//Check the item types
        }