Example #1
0
 public void TestThatCarHasCorrectBasePriceForTenDays()
 {
     var target = new Car(10);
     Assert.AreEqual(80, target.getBasePrice());
 }
Example #2
0
 public void TestThatUserTotalCostIsCorrectWhenMoreThanFlights()
 {
     var car = new Car(5);
     var flight = new Flight(StartDate, EndDate, 500);
     target.book(flight);
     target.book(car);
     Assert.AreEqual(flight.getBasePrice() + car.getBasePrice(), target.Price);
 }
Example #3
0
 public void TestThatCarHasCorrectBasePriceForSevenDays()
 {
     var target = new Car(7);
     Assert.AreEqual(10*7*.8, target.getBasePrice());
 }
Example #4
0
 public void TestThatCarHasCorrectBasePriceForFiveDays()
 {
     var target = new Car(5);
     Assert.AreEqual(50, target.getBasePrice());
 }