예제 #1
0
        public void TestMethod3()
        {
            RussianRoulette.LogicClass testShootAway = new RussianRoulette.LogicClass();

            int testResultShootAway = testShootAway.Spin();

            Assert.IsTrue(testResultShootAway < 7 && testResultShootAway > 0);
        }
        private void Spin_Click(object sender, EventArgs e)
        {
            Load.Enabled = false;// load button is disablesd after the player has once loaded the bullet
            Spin.Enabled = false;
            SoundPlayer sp = new SoundPlayer(RussianRoulette.Resource1.Spin);

            sp.Play();
            ShootHead.Enabled = true; // fire is disabled until the chamber is spinned
            ShootAway.Enabled = true; //shootaway is disabled until the chamber is spinned
            Logic.Spin();             //calling the spin function to act
        }