public void GimliAliveTest() { Dwarf gimli = new Dwarf(); gimli.Healing(1000); Assert.IsFalse(gimli.IsDead()); }
public void PuttingDefenseItemInTest() { Dwarf gimli = new Dwarf(); Dragon dummy = new Dragon(); gimli.ReceiveDamage(dummy.Attack()); int checkPoint1 = gimli.HealthMax - gimli.HealthActual; gimli.Healing(1000); ChainMail armor = new ChainMail(); gimli.AddItem(armor); gimli.ReceiveDamage(dummy.Attack()); int checkPoint2 = gimli.HealthMax - gimli.HealthActual; Assert.AreEqual(checkPoint1 - checkPoint2, armor.DefensePower); }