Exemple #1
0
        public void TestNightShortDistanceFare()
        {
            TaxiFareCalc obj      = new TaxiFareCalc();
            int          taxiFare = obj.Calculate(23, 5);

            Assert.AreEqual(35, taxiFare);
        }
Exemple #2
0
        public void Test1()
        {
            TaxiFareCalc obj      = new TaxiFareCalc();
            int          taxiFare = obj.Calculate(9, 5);

            Assert.AreEqual(25, taxiFare);
        }
Exemple #3
0
        public void Test3()
        {
            TaxiFareCalc obj      = new TaxiFareCalc();
            int          taxiFare = obj.Calculate(23, 40);

            Assert.AreEqual(400, taxiFare);
        }
Exemple #4
0
        public void Test4()
        {
            TaxiFareCalc obj      = new TaxiFareCalc();
            int          taxiFare = obj.Calculate(10, 30);

            Assert.AreEqual(240, taxiFare);
        }
Exemple #5
0
        public void TestNightLongDistance()
        {
            TaxiFareCalc obj      = new TaxiFareCalc();
            int          taxiFare = obj.Calculate(23, 80);

            Assert.AreEqual(640, taxiFare);
        }
Exemple #6
0
        public void TestDayShortDistanceFare()
        {
            TaxiFareCalc obj      = new TaxiFareCalc();
            int          taxiFare = obj.Calculate(9, 5);

            Assert.AreEqual(25, taxiFare);
        }
Exemple #7
0
        public void TestDayMediumDistanceFare()
        {
            TaxiFareCalc obj      = new TaxiFareCalc();
            int          taxiFare = obj.Calculate(10, 30);

            Assert.AreEqual(240, taxiFare);
        }
Exemple #8
0
        public void TestDayLongDistanceFare()
        {
            TaxiFareCalc obj      = new TaxiFareCalc();
            int          taxiFare = obj.Calculate(10, 70);

            Assert.AreEqual(420, taxiFare);
        }
Exemple #9
0
        public void TestNightMediumDistanceFare()
        {
            TaxiFareCalc obj      = new TaxiFareCalc();
            int          taxiFare = obj.Calculate(23, 40);

            Assert.AreEqual(400, taxiFare);
        }
 public void TestDayLongDistanceFare()
 {
     TaxiFareCalc obj = new TaxiFareCalc();
     int taxiFare = obj.Calculate(10, 70);
     Assert.AreEqual(420, taxiFare);
 }
 public void TestDayMediumDistanceFare()
 {
     TaxiFareCalc obj = new TaxiFareCalc();
     int taxiFare = obj.Calculate(10, 30);
     Assert.AreEqual(240, taxiFare);
 }
Exemple #12
0
 public void Test3()
 {
     TaxiFareCalc obj = new TaxiFareCalc();
     int taxiFare = obj.Calculate(23, 40);
     Assert.AreEqual(400, taxiFare);
 }
Exemple #13
0
 public void Test4()
 {
     TaxiFareCalc obj = new TaxiFareCalc();
     int taxiFare = obj.Calculate(10, 30);
     Assert.AreEqual(240, taxiFare);
 }
Exemple #14
0
 public void Test2()
 {
     TaxiFareCalc obj = new TaxiFareCalc();
     int taxiFare = obj.Calculate(23, 5);
     Assert.AreEqual(35, taxiFare);
 }
 public void TestNightShortDistanceFare()
 {
     TaxiFareCalc obj = new TaxiFareCalc();
     int taxiFare = obj.Calculate(23, 5);
     Assert.AreEqual(35, taxiFare);
 }
 public void TestNightMediumDistanceFare()
 {
     TaxiFareCalc obj = new TaxiFareCalc();
     int taxiFare = obj.Calculate(23, 40);
     Assert.AreEqual(400, taxiFare);
 }
 public void TestNightLongDistance()
 {
     TaxiFareCalc obj = new TaxiFareCalc();
     int taxiFare = obj.Calculate(23, 80);
     Assert.AreEqual(640, taxiFare);
 }
 public void TestDayShortDistanceFare()
 {
     TaxiFareCalc obj = new TaxiFareCalc();
     int taxiFare = obj.Calculate(9, 5);
     Assert.AreEqual(25, taxiFare);
 }