Exemplo n.º 1
0
        public void WhenConsumingGauntletKey_ItemRemovedFromInventory()
        {
            GauntletInventoryHelper systemUnderTest = CreateSystem();

            systemUnderTest.ConsumeGauntletKeyForIndex(0);

            MockInventory.Received().RemoveUsesFromItem("Gauntlet_Key_0", 1);
        }
Exemplo n.º 2
0
        public void GetItemIdKeyForIndex_ReturnsExpected()
        {
            string expectedKey = "Gauntlet_Key_0";
            GauntletInventoryHelper systemUnderTest = CreateSystem();

            string key = systemUnderTest.GetGauntletItemKeyForIndex(0);

            Assert.AreEqual(expectedKey, key);
        }
Exemplo n.º 3
0
        public void GetKeysFromIndex_ReturnsExpectedItemFromInventory()
        {
            string expectedKey = GauntletInventoryHelper.ITEM_KEY + "1";
            GauntletInventoryHelper systemUnderTest = CreateSystem();

            systemUnderTest.GetGauntletKeysFromIndex(1);

            MockInventory.Received().GetItem(expectedKey);
        }
Exemplo n.º 4
0
        private GauntletInventoryHelper CreateSystem()
        {
            GauntletInventoryHelper systemUnderTest = new GauntletInventoryHelper(MockInventory);

            return(systemUnderTest);
        }