public void ChargeWithNegativePowerExpect25() { LaptopBattery battery = new LaptopBattery(); battery.Charge(-25); Assert.AreEqual(25, battery.CurrentBatteryPower()); }
public void ChargeWithPositivePowerExpect75() { LaptopBattery battery = new LaptopBattery(); battery.Charge(25); Assert.AreEqual(75, battery.CurrentBatteryPower()); }
public void ChargeWithSupernegativePowerExpectZero() { LaptopBattery battery = new LaptopBattery(); battery.Charge(-200); Assert.AreEqual(0, battery.CurrentBatteryPower()); }
public void ChargeWithSuperpositivePowerExpectHundred() { LaptopBattery battery = new LaptopBattery(); battery.Charge(200); Assert.AreEqual(100, battery.CurrentBatteryPower()); }
public void CheckIfDefaultPowerIs50() { LaptopBattery battery = new LaptopBattery(); Assert.AreEqual(50, battery.CurrentBatteryPower()); }