Ejemplo n.º 1
0
        public void MeeleAttackRangeTest()
        {
            Creature enemy = new Creature(10);

            map[1, 2].putCreature(enemy);

            ICreatureCommand command = new AttackCommand(attacker, deffender, map);

            Assert.IsTrue(command.isExecutable());
            command = new AttackCommand(attacker, enemy, map);
            Assert.IsFalse(command.isExecutable());
        }