Esempio n. 1
0
        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)");
        }
Esempio n. 2
0
        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)");
        }
Esempio n. 3
0
 private void MyOnBatteryLow(object sender, NUIApplicationBatteryLowEventArgs e)
 {
 }