public void GivenEquipmentName_EquipmentCostsArePopulated(string equipName, double expectedCost) { // Arrange Equipment.Equipment item = new Equipment.Equipment(); // Act Equipment.Equipment builtItem = item.BuildItem(equipName); var actualCost = builtItem.Cost; // Assert Assert.AreEqual(expectedCost, actualCost); }
public void RemoveEquip(Equipment.Equipment equipment) { equip.Remove(equipment); }
public void AddEquip(Equipment.Equipment equipment) { equip.Add(equipment); }
//Constructor public Character() { equipment = new Equipment.Equipment(); //MessageBox.Show(equipment.getWeapon("Wooden Spear").Name).ToString(); }
public void GivenEquipmentName_EquipmentCostsArePopulated(string equipName, double expectedCost) { // Arrange Equipment.Equipment item = new Equipment.Equipment(); // Act Equipment.Equipment builtItem = item.BuildItem(equipName); var actualCost = builtItem.Cost; // Assert Assert.AreEqual(expectedCost, actualCost); }