public void AddFuelTest() { VehicleMock1.AddFuel(2.3, 5.7); VehicleMock1.AddFuel(11.13, 17.19); Assert.AreEqual(2.3 + 11.13, VehicleMock1.GetFuelLitres()); Assert.AreEqual(5.7 + 17.19, VehicleMock1.GetFuelCost()); }
public void SetOdometerTest() { VehicleMock1.SetOdometer(100); Assert.AreEqual(100, VehicleMock1.Odometer); }
public void AddDistanceTest() { VehicleMock1.AddDistance(100); Assert.AreEqual(100, VehicleMock1.Odometer); }