Example #1
0
        public void ShieldPowerupCanBeInstnatiatedWithoutDuration()
        {
            var shield = Substitute.For <IShield>();

            ShieldPowerup powerup = new ShieldPowerup(shield, null);

            Assert.AreEqual(null, powerup.Duration());
        }
Example #2
0
        public void ShieldPowerupCanBeInstantiated()
        {
            var shield = Substitute.For <IShield>();

            ShieldPowerup powerup = new ShieldPowerup(shield);

            Assert.AreEqual(10f, powerup.Duration());
        }