public void calculate_consumable_in_hour_for_years() { StarWarsResupplyManager target = new StarWarsResupplyManager(); string shipSpeed = "120"; //MGLT for ship as STRING (API) string shipConsumables = "2 years"; // consumable ship Assert.IsTrue(target.calulateConsumableInHour(shipConsumables, shipSpeed) == 2103840, "Calulcation for YEARs work correctly"); }
public void calculate_consumable_in_hour_for_week() { StarWarsResupplyManager target = new StarWarsResupplyManager(); string shipSpeed = "40"; //MGLT for ship as STRING (API) string shipConsumables = "3 weeks"; // consumable ship Assert.IsTrue(target.calulateConsumableInHour(shipConsumables, shipSpeed) == 20160, "Calulcation for WEEKs work correctly"); }
public void calculate_consumable_in_hour_for_months() { StarWarsResupplyManager target = new StarWarsResupplyManager(); string shipSpeed = "75"; //MGLT for ship as STRING (API) string shipConsumables = "1 month"; // consumable ship Assert.IsTrue(target.calulateConsumableInHour(shipConsumables, shipSpeed) == 55125, "Calulcation for MONTHs work correctly"); }
public void calculate_consumable_in_hour_for_day() { StarWarsResupplyManager target = new StarWarsResupplyManager(); string shipSpeed = "105"; //MGLT for ship as STRING (API) string shipConsumables = "5 days"; // consumable ship Assert.IsTrue(target.calulateConsumableInHour(shipConsumables, shipSpeed) == 12600, "Calulcation for DAYs work correctly"); }