Example #1
0
 public void ChargeBatteryWithMinus70PercentShouldReturn0()
 {
     var battery = new LaptopBattery();
     battery.ChargeBattery(-70);
     Assert.AreEqual(0, battery.CurrentBatteryLife);
 }
Example #2
0
 public void ChargeBatteryWith50PercentShouldReturn100()
 {
     var battery = new LaptopBattery();
     battery.ChargeBattery(50);
     Assert.AreEqual(100, battery.CurrentBatteryLife);
 }