private static void BagTest() { BagClass myBag = new BagClass(3); var item1 = new SwordClass(); var item2 = new PotionClass(); myBag.AddItem(item1); myBag.AddItem(item2); myBag.DisplayContents(); }
private static void RemoveTest() { BagClass myBag = new BagClass(3); var item1 = new SwordClass(); var item2 = new PotionClass(); var item3 = new PotionClass(); myBag.AddItem(item1); myBag.AddItem(item2); myBag.AddItem(item3); myBag.DisplayContents(); var remove = myBag.RemoveItem(); Console.WriteLine($"Remove {item3.Name} from bag"); myBag.DisplayContents(); }