Exemplo n.º 1
0
        public void NUICoreBackendConstructor()
        {
            tlog.Debug(tag, $"NUICoreBackendConstructor START");

            var testingTarget = new NUICoreBackend();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"NUICoreBackendConstructor END (OK)");
        }
Exemplo n.º 2
0
        public void NUICoreBackendConstructorWithMoreArgs()
        {
            tlog.Debug(tag, $"NUICoreBackendConstructorWithMoreArgs START");

            var dummy         = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/style/Test_Style_Manager.json";
            var testingTarget = new NUICoreBackend(dummy, NUIApplication.WindowMode.Opaque, new Size(400, 400), new Position(200, 300));

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"NUICoreBackendConstructorWithMoreArgs END (OK)");
        }
Exemplo n.º 3
0
        public void NUICoreBackendConstructorWithStylesheet()
        {
            tlog.Debug(tag, $"NUICoreBackendConstructorWithStylesheet START");

            var dummy         = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/style/Test_Style_Manager.json";
            var testingTarget = new NUICoreBackend(dummy);

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"NUICoreBackendConstructorWithStylesheet END (OK)");
        }
Exemplo n.º 4
0
        public void NUICoreBackendAddEventHandler()
        {
            tlog.Debug(tag, $"NUICoreBackendAddEventHandler START");

            var testingTarget = new NUICoreBackend();

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

            testingTarget.AddEventHandler(Tizen.Applications.CoreBackend.EventType.Created, OnCreate);

            testingTarget.Dispose();
            tlog.Debug(tag, $"NUICoreBackendAddEventHandler END (OK)");
        }
Exemplo n.º 5
0
        public void NUICoreBackendDispose()
        {
            tlog.Debug(tag, $"NUICoreBackendDispose START");

            var testingTarget = new NUICoreBackend();

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

            try
            {
                testingTarget.Dispose();
            }
            catch (Exception e)
            {
                tlog.Error(tag, "Caught Exception" + e.ToString());
                Assert.Fail("Caught Exception" + e.ToString());
            }

            tlog.Debug(tag, $"NUICoreBackendDispose END (OK)");
        }
Exemplo n.º 6
0
        public void NUICoreBackendApplicationHandle()
        {
            tlog.Debug(tag, $"NUICoreBackendApplicationHandle START");

            var testingTarget = new NUICoreBackend();

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

            try
            {
                var result = testingTarget.ApplicationHandle;
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"NUICoreBackendApplicationHandle END (OK)");
        }