示例#1
0
        public void TestFullAuto()
        {
            AssaultRifle testWeapon = new AssaultRifle(FireModeEnum.FullAuto);
            Enemy        testEnemy  = new Grunt();

            testWeapon.Shoot(testEnemy);
            int test = Grunt.Grunt_Starting_Energy - testWeapon.GetDamage();

            Assert.AreEqual(test, testEnemy.EnergyRemaining);
        }