Ejemplo n.º 1
0
 public void CanContain_TerrainWithPowerUp_Returnstrue()
 {
     Unit a = new Unit();
     PowerUp p = new PowerUp();
     PowerUp p2 = new PowerUp();
     Tile t = new Tile();
     t.AddEntity(p);
     Assert.IsTrue(t.CanContain(a));
     Assert.IsTrue(t.CanContain(p2));
 }
Ejemplo n.º 2
0
 public void CanContain_terrainWithAnUnit_Returnsfalse()
 {
     Unit a = new Unit();
     Unit b = new Unit();
     PowerUp p = new PowerUp();
     Tile t = new Tile();
     t.AddEntity(a);
     Assert.IsFalse(t.CanContain(b));
     Assert.IsTrue(t.CanContain(p));
 }