public void GivenDistanceAndZeroConsumable_WhenCallCountStops_ShouldReturnZeroResult() { //arrange StarShip model = new StarShip { Consumables = "0 days", Mglt = 10 }; //act var result = model.CountStops(110); //assert result.Should().Be(0); }
public void GivenDistanceAndWeeksConsumable_WhenCallCountStops_ShouldReturnValidResult() { //arrange StarShip model = new StarShip { Consumables = "4 weeks", Mglt = 100 }; //act var result = model.CountStops(10000000); //assert result.Should().BeGreaterThan(0); result.Should().Be(148); }