public void NUIApplicationBatteryLowEventArgsBatteryStatusGet() { tlog.Debug(tag, $"NUIApplicationBatteryLowEventArgsBatteryStatusGet START"); var testingTarget = new NUIApplicationBatteryLowEventArgs(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <NUIApplicationBatteryLowEventArgs>(testingTarget, "should be an instance of testing target class!"); var result = testingTarget.BatteryStatus; Assert.IsNotNull(result, "should be not null"); tlog.Debug(tag, $"NUIApplicationBatteryLowEventArgsBatteryStatusGet END (OK)"); }
public void NUIApplicationBatteryLowEventArgsBatteryStatusSet() { tlog.Debug(tag, $"NUIApplicationBatteryLowEventArgsBatteryStatusSet START"); var testingTarget = new NUIApplicationBatteryLowEventArgs(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <NUIApplicationBatteryLowEventArgs>(testingTarget, "should be an instance of testing target class!"); var status = Application.BatteryStatus.Normal; testingTarget.BatteryStatus = status; var result = testingTarget.BatteryStatus; Assert.IsNotNull(testingTarget, "should be not null"); Assert.AreEqual(status, result, "Retrieved result should be equal to status."); tlog.Debug(tag, $"NUIApplicationBatteryLowEventArgsBatteryStatusSet END (OK)"); }
private void MyOnBatteryLow(object sender, NUIApplicationBatteryLowEventArgs e) { }