Esempio n. 1
0
        public void CheckUsernameInputSuccessful()
        {
            PlayerName pl = new PlayerName();

            pl.textBox1.Text = "";
            pl.enterUsername();
            Assert.AreEqual("Username Missing", pl.frm.Name);
            pl.textBox1.Text = "Saad";
            pl.enterUsername();
            Assert.AreEqual("Saad", pl.frm.Name);
            pl.Dispose();
        }
Esempio n. 2
0
        public void CheckDifficulty()
        {
            PlayerName pl = new PlayerName();

            pl.frm.InitializeValues();
            pl.chooseDifficulty(2);
            Assert.AreEqual(15, pl.frm.canonMovement);
            Assert.AreEqual(10, pl.frm.movimento);
            Assert.AreEqual(2, pl.frm.cyclesCount);
            Assert.AreEqual(4, pl.frm.lives);
            Assert.AreEqual(15, pl.frm.canonMovement);
            pl.Dispose();
        }
 void ReleaseDesignerOutlets()
 {
     if (LookupButton != null)
     {
         LookupButton.Dispose();
         LookupButton = null;
     }
     if (PlayerName != null)
     {
         PlayerName.Dispose();
         PlayerName = null;
     }
     if (ResultTable != null)
     {
         ResultTable.Dispose();
         ResultTable = null;
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (CharacterName != null)
            {
                CharacterName.Dispose();
                CharacterName = null;
            }

            if (PlayerName != null)
            {
                PlayerName.Dispose();
                PlayerName = null;
            }

            if (RolledInitiative != null)
            {
                RolledInitiative.Dispose();
                RolledInitiative = null;
            }
        }