Example #1
0
        public void TestAddingSingularBarrel()
        {
            AssaultRifle testWeapon = new AssaultRifle();

            testWeapon.AddBarrel(BarrelEnum.LongBarrel);

            var expectedBarrel = testWeapon.GetCurrentBarrel();

            Assert.AreEqual(expectedBarrel.damageMultiplier, new Barrel(BarrelEnum.LongBarrel).damageMultiplier);
        }