public void TestLuckyMusicPlaying() { GameForm form = new GameForm(true, false, 2); form.Show(); form.StartGame(true, false, 2); Assert.IsTrue(form.Music.SoundLocation == @"../../Resources/GetLucky2.wav"); }
public void TestCenaMusicPlaying() { GameForm form = new GameForm(false, true, 2); form.Show(); form.StartGame(false, true, 2); Assert.IsTrue(form.Music.SoundLocation == @"../../Resources/JohnCena.wav"); }
public void TestReadHighScores() { GameForm form = new GameForm (false, true, 2); form.Show (); form.StartGame(true, false, 2); form.Die (); StringAssert.Contains (Settings.Score.ToString(), form.gameOver); }
public void TestGameMessages() { GameForm form = new GameForm(false,false,2); form.Show(); Assert.IsTrue(form.lblScore.Visible, "Checks if lblScore is visible"); }
public void TestWriteHighScores() { GameForm form = new GameForm (false, true, 2); form.Show (); form.StartGame(true, false, 2); form.Die (); Assert.AreEqual(Settings.Score, form.iHighScores[form.iHighScores.LastIndexOf(Settings.Score)]); }
//Tests methods public void StartGame() { MenuMusic.Stop(); GameForm game; if (a == true || changed == true) { game = new GameForm(a, c, d); this.Hide(); game.Show(); } else { game = new GameForm(false, false, 1); } }
/// <summary> /// Starts Game /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void StartGame(object sender, EventArgs e) { GameForm game; if (a == true || changed == true) { game = new GameForm(a, c, d); this.Hide(); game.Show(); } else { game = new GameForm(false,false,1); } }