public void DeadCharacterCannotBeHealed() { var givenCharacter = new RpgCharacter(SomeId, 0, SomeLevel); givenCharacter.Heal(100); givenCharacter.Health.Should().Be(0); }
public void IncreaseHealthByHealedAmountWithoutSurpassingMaximum(int startingHealth, int healedAmount, int expectedHealth) { var givenCharacter = new RpgCharacter(SomeId, startingHealth, SomeLevel); givenCharacter.Heal(healedAmount); givenCharacter.Health.Should().Be(expectedHealth); }