Exemple #1
0
        public void TestMethod2()
        {
            RussianRoulette.LogicClass testshoot = new RussianRoulette.LogicClass();

            int testResultshoot = testshoot.ShootAway();

            Assert.IsTrue(testResultshoot <= 4 && testResultshoot > 0);
        }
        private void ShootAway_Click(object sender, EventArgs e)
        {
            Spin.Enabled = false;
            Load.Enabled = false;

            SoundPlayer sp = new SoundPlayer(RussianRoulette.Resource1.GunShoot);

            sp.Play();
            Logic.ShootAway();//calling the shootaway logic to act
        }