public void TestShootingChangeToDying()
        {
            int       damage = 10, hp = 100;
            ICreature creature = new BasicCreature(null, null, null, damage, hp, null);
            Status    shooting = creature.getShooting();
            Status    dying    = creature.getDying();

            int takenDamage = 100;

            creature.ReciveDamage(takenDamage);

            Assert.AreEqual(shooting.changeStatus(), dying);
        }
Beispiel #2
0
        public void TestShootingChangeToDying()
        {
            int       damage = 10, hp = 100;
            Graph     graph            = new Graph(10, 10);
            Node      startDestinaton  = graph.getNode(1, 1);
            Node      finalDestination = graph.getNode(5, 5);
            ICreature creature         = new BasicCreature(startDestinaton, finalDestination, graph, damage, hp, null);
            Status    shooting         = creature.getShooting();
            Status    dying            = creature.getDying();

            int takenDamage = 100;

            creature.ReciveDamage(takenDamage);

            Assert.AreEqual(shooting.changeStatus(), dying);
        }