public void StartStopChargeTest()
        {
            TDKService tdkService = NewTDKService();

            tdkService.StartCharge();
            Assert.IsTrue(tdkService.IsCharging, "Charger is not charging and should be");

            tdkService.StopCharge();
            Assert.IsFalse(tdkService.IsCharging, "Charger is charging and should be stopped");
        }
        public void SetChargePower()
        {
            TDKService tdkService = NewTDKService();

            tdkService.StartCharge();
            Assert.IsTrue(tdkService.IsCharging, "Charger is not charging and should be");

            tdkService.RequestedCurrent = 3.2f;
            tdkService.RequestedVoltage = 32.1f;

            // We call it twice as it gets set on the first time and read on the second
            tdkService.ChargerUpdateInner();
            tdkService.ChargerUpdateInner();

            Assert.AreEqual(tdkService.ActualCurrent, 0);
            Assert.AreEqual(tdkService.ActualVoltage, tdkService.RequestedVoltage, 0.5);

            tdkService.StopCharge();
            Assert.IsFalse(tdkService.IsCharging, "Charger is still charging and should be stopped");
        }