public void TestMoovingChangeToDying() { int damage = 10, hp = 100; ICreature creature = new BasicCreature(null, null, null, damage, hp, null); Status mooving = creature.getMoovnig(); Status dying = creature.getDying(); int takenDamage = 100; creature.ReciveDamage(takenDamage); Assert.AreEqual(mooving.changeStatus(), dying); }
public void TestMoovingChangeToDying() { 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 mooving = creature.getMoovnig(); Status dying = creature.getDying(); int takenDamage = 100; creature.ReciveDamage(takenDamage); Assert.AreEqual(mooving.changeStatus(), dying); }