Esempio n. 1
0
        public void CalculatePrice_WithDaysLessThenZero()
        {
            Heavy heavy = new Heavy();

            float result = heavy.CalculatePrice(0);

            Assert.AreEqual(0, result);

            result = heavy.CalculatePrice(-3212);

            Assert.AreEqual(0, result);
        }
Esempio n. 2
0
        public void CalculatePrice_WithDaysMoreThenZero()
        {
            Heavy heavy = new Heavy();

            float result = heavy.CalculatePrice(1);

            Assert.AreEqual(160, result);

            result = heavy.CalculatePrice(15);

            Assert.AreEqual(1000, result);
        }