コード例 #1
0
ファイル: TSNUICoreBackend.cs プロジェクト: yunmiha/TizenFX
        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)");
        }
コード例 #2
0
ファイル: TSNUICoreBackend.cs プロジェクト: yunmiha/TizenFX
        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)");
        }
コード例 #3
0
ファイル: TSNUICoreBackend.cs プロジェクト: yunmiha/TizenFX
        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)");
        }
コード例 #4
0
ファイル: TSNUICoreBackend.cs プロジェクト: yunmiha/TizenFX
        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)");
        }
コード例 #5
0
ファイル: TSNUICoreBackend.cs プロジェクト: yunmiha/TizenFX
        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)");
        }
コード例 #6
0
ファイル: TSNUICoreBackend.cs プロジェクト: wonrst/TizenFX
        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)");
        }