Beispiel #1
0
        public void WhenConsumingGauntletKey_ItemRemovedFromInventory()
        {
            GauntletInventoryHelper systemUnderTest = CreateSystem();

            systemUnderTest.ConsumeGauntletKeyForIndex(0);

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

            string key = systemUnderTest.GetGauntletItemKeyForIndex(0);

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

            systemUnderTest.GetGauntletKeysFromIndex(1);

            MockInventory.Received().GetItem(expectedKey);
        }
Beispiel #4
0
        private GauntletInventoryHelper CreateSystem()
        {
            GauntletInventoryHelper systemUnderTest = new GauntletInventoryHelper(MockInventory);

            return(systemUnderTest);
        }