public void EditTest() { Vehicles2.Add(Vehicle1); string originalModel = Vehicle1.Model; Vehicles2.Edit(Vehicle1, Vehicle1.Manufacturer, "X" + Vehicle1.Model, Vehicle1.MakeYear, Vehicle1.RegistrationNumber, Vehicle1.TankCapacity, Vehicle1.ServiceLimit); Assert.AreEqual("X" + originalModel, (Vehicles2.List.Last()).Model); }
public void EditTest1() { Vehicles2.Add(Vehicle1); string originalModel = Vehicle1.Model; Vehicle1.Model = "X" + Vehicle1.Model; Vehicles2.Edit(Vehicle1); Assert.AreEqual("X" + originalModel, (Vehicles2.List.Last()).Model); }
public void TravelServiceGapTest() { int gap = Vehicles2.TravelServiceGap(Services1.ByVehicle(Vehicles2.List[0]), Journeys1.ByVehicle(Vehicles2.List[0])); Assert.AreEqual(9985, gap); }
public void TotalFuelLitresTest() { double litres = Vehicles2.TotalFuelLitres(FuelPurchases1.ByVehicle(Vehicles2.List[0])); Assert.AreEqual(39.23 + 49.57, litres); }
public void TotalDistanceTest() { int distance = Vehicles2.TotalDistance(Journeys1.ByVehicle(Vehicles2.List[0])); Assert.AreEqual(30, distance); }
public void AddUsingObjectTest() { Vehicles2.Add(Vehicle1); Assert.AreEqual(3, Vehicles2.List.Count); }