public void TestDead1() { int damage = 10, hp = 100; ICreature creature = new BasicCreature(null, null, null, damage, hp, null); Assert.IsFalse(creature.isDead()); }
public void TestDead1() { 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); Assert.IsFalse(creature.isDead()); }
public void TestDead3() { int damage = 10, hp = 100; ICreature creature = new BasicCreature(null, null, null, damage, hp, null); int takenDamage = 120; creature.ReciveDamage(takenDamage); Assert.IsTrue(creature.isDead()); }
public void TestDead3() { 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); int takenDamage = 120; creature.ReciveDamage(takenDamage); Assert.IsTrue(creature.isDead()); }