示例#1
0
        public void GivenpremiumFare()
        {
            InvoiceGenerators obj    = new InvoiceGenerators();
            double            result = obj.CalculateFare("premium", 2, 2);

            Assert.AreEqual(34, result);
        }
示例#2
0
        public void GivenDistanceAndTime_whereShouldReturnTotalFare()
        {
            InvoiceGenerators obj    = new InvoiceGenerators();
            double            result = obj.CalculateFare("Normal", 2, 2);
            int expect = 22;

            Assert.AreEqual(expect, result);
        }