public void GetUsagePerMeter_not_started() { var car = RemoteControlCar.Buy(); var tc = new TelemetryClient(car); Assert.Equal("no data", tc.GetBatteryUsagePerMeter(serialNum: 1)); }
public void GetUsagePerMeter_good() { var car = RemoteControlCar.Buy(); car.Drive(); car.Drive(); var tc = new TelemetryClient(car); Assert.Equal("usage-per-meter=5", tc.GetBatteryUsagePerMeter(serialNum: 1)); }