Ejemplo n.º 1
0
        public void WhenDealingDamageToTarget5LevelsAboveDamageIsReducedBy50Pct()
        {
            var attacker = new MeleeFighter();
            var target   = new MeleeFighter();

            target.RaiseLevelTo(6);
            attacker.DealDamageTo(target, 100);

            target.Health.Should().Be(950);
        }
Ejemplo n.º 2
0
        public void WhenDealingDamageToTarget5LevelsBelowDamageIsIncreasedBy50Pct()
        {
            var attacker = new MeleeFighter();
            var target   = new MeleeFighter();

            attacker.RaiseLevelTo(6);
            attacker.DealDamageTo(target, 100);

            target.Health.Should().Be(850);
        }