private void UseWand(Wand theWand, int noOfUses) { Console.WriteLine($"Testing Wand {theWand.Description}"); for (int i = 0; i < noOfUses; i++) { Console.WriteLine($"Damage dealt by {theWand.Description}: {theWand.DamageFromWand()}"); } Console.WriteLine(); }
private void TestWand() { Wand myWand = new Wand("Dragonhair"); UseWand(myWand, 5); myWand.IsEnchanted = true; Console.WriteLine("Enchanted Wand..."); UseWand(myWand, 5); myWand.IsEnchanted = false; Console.WriteLine("Disenchanted Wand..."); UseWand(myWand, 5); }