public void GetStopsNeededToResupplyWithoutConsumablesValue_ShouldBeMinus1() { var starship = new Starship { Mglt = "75", Consumables = "months" }; var stops = starship.GetStopsNeededToResupply(1000000); Assert.AreEqual(-1, stops); }
public void GetStopsNeededToResupplyDistanceNegative_ShouldBeMinus1() { var starship = new Starship { Mglt = "75", Consumables = "2 months" }; var stops = starship.GetStopsNeededToResupply(-10); Assert.AreEqual(-1, stops); }
public void GetStopsNeededToResupplyMillenniumFalcon_ShouldBe9() { var starship = new Starship { Mglt = "75", Consumables = "2 months" }; var stops = starship.GetStopsNeededToResupply(1000000); Assert.AreEqual(9, stops); }
public void GetStopsNeededToResupplyDistanceZero_ShouldBeZero() { var starship = new Starship { Mglt = "75", Consumables = "2 months" }; var stops = starship.GetStopsNeededToResupply(0); Assert.AreEqual(0, stops); }
public void GetStopsNeededToResupplyYWing_ShouldBe74() { var starship = new Starship { Mglt = "80", Consumables = "1 week" }; var stops = starship.GetStopsNeededToResupply(1000000); Assert.AreEqual(74, stops); }