public void TestSnakeDie() { Form1 game = new Snake.Form1(); int maxXPos = 27; int maxYPos = 26; game.Snake[0].X = maxXPos; game.Snake[0].Y = maxYPos; Assert.IsTrue(game.Die() == "You're dead"); }
public static void RemoveBoxes(Form1 f) { f.boxPlayers.Visible = false; f.boxRanking.Visible = false; f.boxSettings.Visible = false; }
public Form1() { InitializeComponent(); form1 = this; }