Example #1
0
        public void ShieldRepair()
        {
            DamageShip(5d, DamageType.Energy);

            var repair = new ArmourRepair();
            repair.Repair(_ship, _shieldInfo);

            Assert.That(_ship.Statistics[ShipStatistic.EnergyArmourStrength].CurrentValue, Is.EqualTo(100d));
        }
Example #2
0
        public void SmallDamage()
        {
            for ( var i = 0; i < 5; i++ )
                DamageShip(1d);

            var repair = new ArmourRepair();
            repair.Repair(_ship, _shieldInfo);

            Assert.That(_ship.Statistics[ShipStatistic.EnergyArmourStrength].CurrentValue, Is.EqualTo(100d));
        }
Example #3
0
        public void UndamagedShipRepair()
        {
            var repair = new ArmourRepair();
            repair.Repair(_ship, _shieldInfo);

            Assert.That(_ship.Statistics[ShipStatistic.EnergyArmourStrength].CurrentValue, Is.EqualTo(100d));
        }