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

            ShieldPowerup powerup = new ShieldPowerup(shield, null);

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

            ShieldPowerup powerup = new ShieldPowerup(shield);

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