Esempio n. 1
0
 private void Playbt_Click(object sender, EventArgs e)
 {
     string P1 = nameX.Text;
     string P2 = nameO.Text;
     int mode2 = 2;
     this.Hide();
     var myForm = new Bettle4(P1,P2,mode2);
     myForm.ShowDialog();
        // myForm.Show();
 }
Esempio n. 2
0
 public void CheckForWinTest3()
 {
     string P1 = "x"; // TODO: Initialize to an appropriate value
     string P2 = "o"; // TODO: Initialize to an appropriate value
     int mode = 2; // TODO: Initialize to an appropriate value
     Bettle4 target = new Bettle4(P1, P2, mode); // TODO: Initialize to an appropriate value
     string[] array = { "o", "0", "0", "0", "o", "o", "0", "0", "o", "0", "x", "0", "o", "0", "0", "o" };  // TODO: Initialize to an appropriate value
     bool expected = true; // TODO: Initialize to an appropriate value
     bool actual;
     actual = target.CheckForWin(array);
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }