public void BlueBombGetColorTest() { Map map = Map.GetInstance; map.CleanArena(); MapManagerStub mapManager = new MapManagerStub(); BluePlayer player = new BluePlayer(1, 1, 1, 1, new Coordinates(5, 5)); mapManager.PlaceBomb(player); BlueBomb bomb = map.getMapContainer()[5, 5][0] as BlueBomb; Assert.Equal(Color.FromKnownColor(KnownColor.Blue), bomb.GetColor()); map.removeMap(); }
public void BombDecoratorTest() { Map map = Map.GetInstance; map.CleanArena(); MapManagerStub mapManager = new MapManagerStub(); BluePlayer player = new BluePlayer(1, 1, 1, 1, new Coordinates(5, 5)); mapManager.PlaceBomb(player); BlueBomb bomb = map.getMapContainer()[5, 5][0] as BlueBomb; Assert.Equal(2, bomb.decorations.Count); map.removeMap(); }