Esempio n. 1
0
        public void TestCustomerRestockAddsGold()
        {
            int goldBefore = shopper.Gold;

            shopper.Restock();

            Assert.Greater(shopper.Gold, goldBefore);
        }
Esempio n. 2
0
        public void TestShopItemsDifferentOnRestock()
        {
            List <Item> items = new List <Item>(shop.Inventory.Items);

            shop.Restock();
            List <Item> newItems = shop.Inventory.Items;

            Assert.AreNotSame(items, newItems);
            for (int i = 0; i < 5; i++)
            {
                Assert.AreNotSame(items[i], newItems[i]);
            }
        }
 public void RestockInventory()
 {
     trader.Restock();
 }