public void DeadCharactersCannotBeHealed() { var attacker = new MeleeFighter(); var target = new MeleeFighter(); attacker.DealDamageTo(target, 1001); target.CanHealSelf().Should().BeFailure(); attacker.CanHeal(target).Should().BeFailure(); }
public void AlliesCanHealOneAnother() { var player1 = new MeleeFighter(); var player2 = new MeleeFighter(); player1.JoinFaction("a"); player2.JoinFaction("a"); player1.CanHeal(player2).Should().BeSuccessful(); player2.CanHeal(player1).Should().BeSuccessful(); }