public void ShieldPowerupCanBeInstnatiatedWithoutDuration() { var shield = Substitute.For <IShield>(); ShieldPowerup powerup = new ShieldPowerup(shield, null); Assert.AreEqual(null, powerup.Duration()); }
public void ShieldPowerupCanBeInstantiated() { var shield = Substitute.For <IShield>(); ShieldPowerup powerup = new ShieldPowerup(shield); Assert.AreEqual(10f, powerup.Duration()); }