public void GetRangeDaysFromConsumablesWithoutValue_ShouldBeZero() { var starship = new Starship { Consumables = "years" }; var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables(); Assert.AreEqual(0, consumablesRangeInDays); }
public void GetRangeDaysFromConsumablesNotCovered_ShouldBeZero() { var starship = new Starship { Consumables = "n/a" }; var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables(); Assert.AreEqual(0, consumablesRangeInDays); }
public void GetRangeDaysFromConsumablesByYear_ShouldBe90() { var starship = new Starship { Consumables = "3 years" }; var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables(); Assert.AreEqual(1095, consumablesRangeInDays); }
public void GetRangeDaysFromConsumablesByMonth_ShouldBe90() { var starship = new Starship { Consumables = "3 months" }; var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables(); Assert.AreEqual(90, consumablesRangeInDays); }
public void GetRangeDaysFromConsumablesByWeek_ShouldBe14() { var starship = new Starship { Consumables = "2 weeks" }; var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables(); Assert.AreEqual(14, consumablesRangeInDays); }
public void GetRangeDaysFromConsumablesByDays_ShouldBe10() { var starship = new Starship { Consumables = "10 days" }; var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables(); Assert.AreEqual(10, consumablesRangeInDays); }