public void Sidekick() { var v = new Villain("Moo", 500); var h = new Hero("Kaas", v); var s = new Villain("Boter", 30); h.UpdateSidekick(s); Assert.AreEqual(s, h.GetSidekick()); var st = new Hero("vbfhbf", v); ; h.UpdateSidekick(st); Assert.AreEqual(st, h.GetSidekick()); }
public void Strengths() { var v = new Villain("fsgfdh", 500); var h = new Hero("Kaas", v); v.AddStrengths("gbhfgh"); v.AddStrengths("tbyjbfj"); h.AddStrengths("Boter"); h.AddStrengths("Majo"); Assert.AreEqual("gbhfgh", v.GetStrengths()[0]); Assert.AreEqual("tbyjbfj", v.GetStrengths()[1]); Assert.AreEqual("Boter", h.GetStrengths()[0]); Assert.AreEqual("Majo", h.GetStrengths()[1]); }
public Hero(string name, Villain archnemesis) : base(name) { this._archnemesis = archnemesis; _strengts = new List <string>(); }