public void PotionSatchelOnlyAllowsPotions() { PotionSatchel satchel = new PotionSatchel(); TurtleArmor armor = new TurtleArmor(); AddItemStatus result = satchel.AddItem(armor); Assert.AreEqual(AddItemStatus.ItemNotRightType, result); HealthPotion potion = new HealthPotion(); result = satchel.AddItem(potion); Assert.AreEqual(AddItemStatus.Success, result); }
public void CannotAddItemToFullBackpack() { Backpack b = new Backpack(); TurtleArmor armor = new TurtleArmor(); b.AddItem(armor); b.AddItem(armor); b.AddItem(armor); b.AddItem(armor); AddItemStatus actual = b.AddItem(armor); Assert.AreEqual(AddItemStatus.BagIsFull, actual); }