Пример #1
0
        public void CalculatePrice_WithMoreThenThreeDays()
        {
            Specialized specialized = new Specialized();

            float result = specialized.CalculatePrice(4);

            Assert.AreEqual(380, result);

            result = specialized.CalculatePrice(15);

            Assert.AreEqual(1480, result);
        }
Пример #2
0
        public void CalculatePrice_WithDaysLessThenZero()
        {
            Specialized specialized = new Specialized();

            float result = specialized.CalculatePrice(0);

            Assert.AreEqual(0, result);

            result = specialized.CalculatePrice(-3212);

            Assert.AreEqual(0, result);
        }
Пример #3
0
        public void CalculatePrice_WithOnlyPremiumPrice()
        {
            Specialized specialized = new Specialized();

            float result = specialized.CalculatePrice(1);

            Assert.AreEqual(160, result);

            result = specialized.CalculatePrice(3);

            Assert.AreEqual(280, result);
        }