public void BeDestroyedOnFullHealthDamage() { var tank = _factory.CreateLightTank(); tank.TakeDamage(tank.HealthPoints); Assert.Equal(0u, tank.HealthPoints); }
private static IEnumerable <Tank> GetTanks(TankFactory tankFactory) { yield return(tankFactory.CreateLightTank()); yield return(tankFactory.CreateCompositeTank()); yield return(tankFactory.CreateReactiveTank()); }
public void AddLightTank() { Add((T)_tankFactory.CreateLightTank()); OnArmyChanged(new ArmyChangedEventArgs { Info = "Added light tank " + this.Last() }); }