Пример #1
0
        public void GetRangeDaysFromConsumablesWithoutValue_ShouldBeZero()
        {
            var starship = new Starship {
                Consumables = "years"
            };
            var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables();

            Assert.AreEqual(0, consumablesRangeInDays);
        }
Пример #2
0
        public void GetRangeDaysFromConsumablesNotCovered_ShouldBeZero()
        {
            var starship = new Starship {
                Consumables = "n/a"
            };
            var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables();

            Assert.AreEqual(0, consumablesRangeInDays);
        }
Пример #3
0
        public void GetRangeDaysFromConsumablesByYear_ShouldBe90()
        {
            var starship = new Starship {
                Consumables = "3 years"
            };
            var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables();

            Assert.AreEqual(1095, consumablesRangeInDays);
        }
Пример #4
0
        public void GetRangeDaysFromConsumablesByMonth_ShouldBe90()
        {
            var starship = new Starship {
                Consumables = "3 months"
            };
            var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables();

            Assert.AreEqual(90, consumablesRangeInDays);
        }
Пример #5
0
        public void GetRangeDaysFromConsumablesByWeek_ShouldBe14()
        {
            var starship = new Starship {
                Consumables = "2 weeks"
            };
            var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables();

            Assert.AreEqual(14, consumablesRangeInDays);
        }
Пример #6
0
        public void GetRangeDaysFromConsumablesByDays_ShouldBe10()
        {
            var starship = new Starship {
                Consumables = "10 days"
            };
            var consumablesRangeInDays = starship.GetAutonomyInDaysFromConsumables();

            Assert.AreEqual(10, consumablesRangeInDays);
        }