Exemplo n.º 1
0
        public void TestTwo()
        {
            BulletCylinder cylinder = new BulletCylinder();

            cylinder.LoadBullet(0);
            Assert.AreEqual(cylinder.FireBullet(0), true);
        }
Exemplo n.º 2
0
        public void TestOne()
        {
            BulletCylinder cylinder = new BulletCylinder();

            cylinder.LoadBullet(2);
            Assert.AreEqual(cylinder.FireBullet(0), false);
        }
Exemplo n.º 3
0
 //CLick to Start the Game
 private void buttonStart_Click(object sender, EventArgs e)
 {
     if (buttonStart.Text.Contains("Start"))
     {
         buttonStart.Text       = "End Game";
         lblMsg.Text            = "Click To Load the Bullet...";
         chance                 = 3;
         BulletCylinder         = new BulletCylinder();
         pictureProcess.Visible = true;
         ChangePicture(pictureProcess, Resources.emptychamber);
         buttonLoad.Enabled = true;
     }
     else
     {
         MessageBox.Show("Quit The Game...?", "Alert");
         this.Close();
     }
 }