public void TestInitialScore() { //Arrange int expected = 0; var wpf_window = new FlappyBird.Form1(); Application.Run(wpf_window); //Act int actual = FlappyBird.Form1.score; //Assert Assert.AreEqual(expected, actual); }
public void TestPipeSpeed() { //Arrange int expected = 13; var wpf_window = new FlappyBird.Form1(); Application.Run(wpf_window); //Act int actual = FlappyBird.Form1.pipespeed; //Assert Assert.AreEqual(expected, actual); }
public void TestPipeAfterScore() { int score = 10; int Pipespeed = 13; int expected = 18; var wpf_window = new FlappyBird.Form1(); Application.Run(wpf_window); //Act int actual = FlappyBird.Form1.pipespeed; if (score > 5) { Pipespeed = 18; } Assert.AreEqual(Pipespeed, expected); }