public void AssertTotalBatteryChargingTimeIsZeroForZeroDeltaBatteryLevelTest() { DateTime t1 = new DateTime(2018, 01, 01, 0, 0, 0); DateTime t2 = new DateTime(2018, 01, 01, 0, 0, 1); int l1 = 10; int l2 = 10; var result = BatteryCycle.TotalBatteryChargingDischargeTime(t1, t2, l1, l2); Assert.Equal(0, result); }
public void AssertTotalBatteryDischargeTimeIsTenTest() { DateTime t1 = new DateTime(2018, 01, 01, 0, 0, 0); DateTime t2 = new DateTime(2018, 01, 01, 0, 0, 1); int l1 = 20; int l2 = 10; var result = BatteryCycle.TotalBatteryChargingDischargeTime(t1, t2, l1, l2); Assert.Equal(10, result); }