public void CheckBatteryPowerType() { var batteryProvider = new Canary.Battery.CnrBattery(); // if we're running on a real device it should be plugged and Apple SDK does not // provide AC/USB thing. We can see only as AC. Assert.True(batteryProvider.PowerSource == PowerSourceType.AC); }
public void CheckBatteryState() { var batteryProvider = new Canary.Battery.CnrBattery(); Assert.True(batteryProvider.BatteryState == ChargingState.Charging || batteryProvider.BatteryState == ChargingState.Full); }
public void CheckBatteryLevel() { var batteryProvider = new Canary.Battery.CnrBattery(); Assert.True(batteryProvider.BatteryLevel >= 0 && batteryProvider.BatteryLevel <= 1); }
public void CheckChargingOfBattery() { var batteryProvider = new Canary.Battery.CnrBattery(); Assert.True(batteryProvider.IsCharging); }