Beispiel #1
0
        public void NUIApplicationAppControlEventArgsVoidPGet()
        {
            tlog.Debug(tag, $"NUIApplicationAppControlEventArgsVoidPGet START");

            var testingTarget = new NUIApplicationAppControlEventArgs();

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

            var result = testingTarget.VoidP;

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

            tlog.Debug(tag, $"NUIApplicationAppControlEventArgsVoidPGet END (OK)");
        }
Beispiel #2
0
        public void NUIApplicationAppControlEventArgsVoidPSet()
        {
            tlog.Debug(tag, $"NUIApplicationAppControlEventArgsVoidPSet START");

            var dummy         = new global::System.IntPtr(0);
            var testingTarget = new NUIApplicationAppControlEventArgs();

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

            testingTarget.VoidP = dummy;

            var result = testingTarget.VoidP;

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

            tlog.Debug(tag, $"NUIApplicationAppControlEventArgsVoidPSet END (OK)");
        }
Beispiel #3
0
        public void NUIApplicationAppControlEventArgsApplicationSet()
        {
            tlog.Debug(tag, $"NUIApplicationAppControlEventArgsApplicationSet START");

            var testingTarget = new NUIApplicationAppControlEventArgs();

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

            var g_result = testingTarget.Application;

            Assert.IsNull(g_result);

            testingTarget.Application = Application.Current;
            var s_result = testingTarget.Application;

            Assert.IsNotNull(s_result);

            tlog.Debug(tag, $"NUIApplicationAppControlEventArgsApplicationSet END (OK)");
        }
Beispiel #4
0
 private void MyOnAppControl(object sender, NUIApplicationAppControlEventArgs e)
 {
 }