public void TestThatCarHasCorrectBasePriceForTenDays() { var target = new Car(10); Assert.AreEqual(80, target.getBasePrice()); }
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); }
public void TestThatCarHasCorrectBasePriceForSevenDays() { var target = new Car(7); Assert.AreEqual(10*7*.8, target.getBasePrice()); }
public void TestThatCarHasCorrectBasePriceForFiveDays() { var target = new Car(5); Assert.AreEqual(50, target.getBasePrice()); }