Example #1
0
        public void GetRangeHoursFromConsumablesNotCovered_ShouldBe0()
        {
            var starship = new Starship {
                Consumables = "n.a"
            };
            var consumablesRangeInHours = starship.GetAutonomyInHoursFromConsumables();

            Assert.AreEqual(0, consumablesRangeInHours);
        }
Example #2
0
        public void GetRangeHoursFromConsumablesByDays_ShouldBe240()
        {
            var starship = new Starship {
                Consumables = "10 days"
            };
            var consumablesRangeInHours = starship.GetAutonomyInHoursFromConsumables();

            Assert.AreEqual(240, consumablesRangeInHours);
        }