예제 #1
0
        public void NUIApplicationMemoryLowEventArgsMemoryStatusGet()
        {
            tlog.Debug(tag, $"NUIApplicationMemoryLowEventArgsMemoryStatusGet START");

            var testingTarget = new NUIApplicationMemoryLowEventArgs();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <NUIApplicationMemoryLowEventArgs>(testingTarget, "should be an instance of testing target class!");

            var result = testingTarget.MemoryStatus;

            Assert.IsNotNull(result, "should be not null");

            tlog.Debug(tag, $"NUIApplicationMemoryLowEventArgsMemoryStatusGet END (OK)");
        }
예제 #2
0
        public void NUIApplicationMemoryLowEventArgsMemoryStatusSet()
        {
            tlog.Debug(tag, $"NUIApplicationMemoryLowEventArgsMemoryStatusSet START");

            var testingTarget = new NUIApplicationMemoryLowEventArgs();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <NUIApplicationMemoryLowEventArgs>(testingTarget, "should be an instance of testing target class!");

            var status = Application.MemoryStatus.Normal;

            testingTarget.MemoryStatus = status;

            var result = testingTarget.MemoryStatus;

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.AreEqual(status, result, "Retrieved result should be equal to status.");

            tlog.Debug(tag, $"NUIApplicationMemoryLowEventArgsMemoryStatusSet END (OK)");
        }
예제 #3
0
 private void MyOnMemoryLow(object sender, NUIApplicationMemoryLowEventArgs e)
 {
 }