public void ChargeBatteryWith50PercentShouldReturn100() { var battery = new LaptopBattery(); battery.ChargeBattery(50); Assert.AreEqual(100, battery.CurrentBatteryLife); }
public void ChargeBatteryWithMinus70PercentShouldReturn0() { var battery = new LaptopBattery(); battery.ChargeBattery(-70); Assert.AreEqual(0, battery.CurrentBatteryLife); }
public Laptop(CentralProcessingUnit processor, RamMemory ramMemory, HardDrive hardDrives, VideoCard videoCard, LaptopBattery battery) : base(processor, ramMemory, hardDrives, videoCard) { this.Battery = battery; }