public void WhenConsumingGauntletKey_ItemRemovedFromInventory() { GauntletInventoryHelper systemUnderTest = CreateSystem(); systemUnderTest.ConsumeGauntletKeyForIndex(0); MockInventory.Received().RemoveUsesFromItem("Gauntlet_Key_0", 1); }
public void GetItemIdKeyForIndex_ReturnsExpected() { string expectedKey = "Gauntlet_Key_0"; GauntletInventoryHelper systemUnderTest = CreateSystem(); string key = systemUnderTest.GetGauntletItemKeyForIndex(0); Assert.AreEqual(expectedKey, key); }
public void GetKeysFromIndex_ReturnsExpectedItemFromInventory() { string expectedKey = GauntletInventoryHelper.ITEM_KEY + "1"; GauntletInventoryHelper systemUnderTest = CreateSystem(); systemUnderTest.GetGauntletKeysFromIndex(1); MockInventory.Received().GetItem(expectedKey); }
private GauntletInventoryHelper CreateSystem() { GauntletInventoryHelper systemUnderTest = new GauntletInventoryHelper(MockInventory); return(systemUnderTest); }