public void TestCombatMagic() { Player attacker = new Player("Dave", Races.Human, Classes.Knight); Player defender = new Player("Steve-O", Races.Dwarf, Classes.Mage); attacker.MagicPower = 21; defender.MagicResistance = 9; _repo.AddPlayerToDirectory(attacker); _repo.AddPlayerToDirectory(defender); Console.WriteLine(attacker.PlayerName); Console.WriteLine(attacker.MagicPower); Console.WriteLine(_repo.AttackWithMagic (attacker.PlayerName, attacker)); Console.WriteLine(); Console.WriteLine(defender.PlayerName); Console.WriteLine(defender.MagicResistance); Console.WriteLine(_repo.DefendAgainstMagic(defender.PlayerName, defender)); Console.WriteLine(); Console.WriteLine(_repo.CombatMagic(attacker.PlayerName, defender.PlayerName)); }