Пример #1
0
        public void CannotDealDamageToCharacterOutOfRange()
        {
            var attacker = new RangedFighter();
            var target   = new MeleeFighter();

            attacker.MoveStepsLeft(5);
            target.MoveStepsRight(16);

            attacker.IsInRangeToDealDamageTo(target).Should().BeFalse();
        }
Пример #2
0
        public void CharactersMustBeInRangeToDealDamageToATarget()
        {
            var attacker = new RangedFighter();
            var target   = new MeleeFighter();

            attacker.MoveStepsLeft(5);
            target.MoveStepsRight(5);

            attacker.IsInRangeToDealDamageTo(target).Should().BeTrue();
        }