Exemplo n.º 1
0
 public void TestThatGameBoardHasEffectList()
 {
     var target = new GameBoard(null, null, null, null, new Environments("shine", null));
     Assert.IsNotNull(target.getEffectList());
 }
Exemplo n.º 2
0
 public void TestThatGameBoardHasNoEffectAfterRemovingEffectinEffectList()
 {
     Character bob = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     Effect effThat = new Effect("health", 10, 1.0, true, bob);
     var target = new GameBoard(null, null, null, null, null);
     target.addEffect(effThat);
     target.destroyEffect(effThat);
     Assert.AreEqual(target.getEffectList().Count, 0);
 }
Exemplo n.º 3
0
 public void TestThatGameBoardHasEffectInEffectList()
 {
     Character bob = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     Effect effThat = new Effect("health", 10, 1.0, true, bob);
     var target = new GameBoard(null, null, null, null, null);
     target.addEffect(effThat);
     Assert.AreEqual(effThat, target.getEffectList()[0]);
 }