private void btnBattle1_Click(object sender, EventArgs e) { frmGameBoard frmGameboard = new frmGameBoard(deckType); this.Hide(); frmGameboard.ShowDialog(); this.Close(); }
public void invalidAdjustMoneyNotAccepted() { //Arrange frmGameBoard tableForm = new frmGameBoard(null, null, null); var expectedOutput = "Please enter only numbers"; LocalTurn localTurn = new LocalTurn(null, null, null, tableForm, null); //Act tableForm.adjustMoneyTextBox.Text = "Hi"; localTurn.adjustMoneyClick(); //Assert Assert.AreEqual(expectedOutput, tableForm.errorLabel.Text); }