public void Can_Increase_Level() { GameLevel gameLevel = new GameLevel(); GameLogic gameLogic = new GameLogic(); Enemy enemy = new Enemy(); bool value = gameLevel.IncreaseLevel(gameLogic); Assert.AreEqual(value, false); }
public void Can_Load_Next_Level() { GameLevel gameLevel = new GameLevel(); int expectedValue = 2; gameLevel.LoadNextLevel(); Assert.AreEqual(gameLevel.Level, expectedValue); }
public void InitializeCharacters() { switch (GameMode) { case GameModeType.Cheat: Pacman = CreateCheatPacman(); break; default: Pacman = CreateCommonPacman(); break; } Enemies = new List<Enemy>() { CreateEnemy(new Point(220, 203), new Point(220, 203), Color.FromArgb(255, 0, 0), Direction.Left), CreateEnemy(new Point(205, 203), new Point(205, 203), Color.FromArgb(255, 184, 71), Direction.Right) }; Pellets = new Pellet(); GameLevel = new GameLevel(); GenerateCharacters(); }