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

            var testingTarget = new TizenPlatformServices();

            Assert.IsNotNull(testingTarget, "Can't create success object TizenPlatformServices.");
            Assert.IsInstanceOf <TizenPlatformServices>(testingTarget, "Should return TizenPlatformServices instance.");

            tlog.Debug(tag, $"TizenPlatformServicesConstructor END");
        }
Ejemplo n.º 2
0
        public void StartTimer()
        {
            tlog.Debug(tag, $"StartTimer START");

            try
            {
                var testingTarget = new TizenPlatformServices();
                Assert.IsNotNull(testingTarget, "Can't create success object TizenPlatformServices.");

                testingTarget.StartTimer(new TimeSpan(10), () => false);
            }
            catch (Exception e)
            {
                Assert.Fail("Catch exception " + e.Message.ToString());
            }
            tlog.Debug(tag, $"StartTimer END");
        }
Ejemplo n.º 3
0
        public void BeginInvokeOnMainThread()
        {
            tlog.Debug(tag, $"BeginInvokeOnMainThread START");

            try
            {
                var testingTarget = new TizenPlatformServices();
                Assert.IsNotNull(testingTarget, "Can't create success object TizenPlatformServices.");

                testingTarget.BeginInvokeOnMainThread(() => new View());
            }
            catch (Exception e)
            {
                Assert.Fail("Catch exception " + e.Message.ToString());
            }
            tlog.Debug(tag, $"BeginInvokeOnMainThread END");
        }
Ejemplo n.º 4
0
        public void RuntimePlatform()
        {
            tlog.Debug(tag, $"RuntimePlatform  START");

            try
            {
                var testingTarget = new TizenPlatformServices();
                Assert.IsNotNull(testingTarget, "Can't create success object TizenPlatformServices.");

                Assert.AreEqual(Device.Tizen, testingTarget.RuntimePlatform, "Should be equal");
            }
            catch (Exception e)
            {
                Assert.Fail("Catch exception " + e.Message.ToString());
            }
            tlog.Debug(tag, $"RuntimePlatform END");
        }
Ejemplo n.º 5
0
        public void IsInvokeRequired()
        {
            tlog.Debug(tag, $"IsInvokeRequired START");

            try
            {
                var testingTarget = new TizenPlatformServices();
                Assert.IsNotNull(testingTarget, "Can't create success object TizenPlatformServices.");

                Assert.True(testingTarget.IsInvokeRequired, "Should be true");
            }
            catch (Exception e)
            {
                Assert.Fail("Catch exception " + e.Message.ToString());
            }
            tlog.Debug(tag, $"IsInvokeRequired END");
        }
Ejemplo n.º 6
0
        public void QuitApplication()
        {
            tlog.Debug(tag, $"QuitApplication START");

            try
            {
                var testingTarget = new TizenPlatformServices();
                Assert.IsNotNull(testingTarget, "Can't create success object TizenPlatformServices.");

                testingTarget.QuitApplication();
            }
            catch (Exception e)
            {
                Assert.Fail("Catch exception " + e.Message.ToString());
            }
            tlog.Debug(tag, $"QuitApplication END");
        }
Ejemplo n.º 7
0
        public void GetMD5Hash()
        {
            tlog.Debug(tag, $"GetMD5Hash START");

            try
            {
                var testingTarget = new TizenPlatformServices();
                Assert.IsNotNull(testingTarget, "Can't create success object TizenPlatformServices.");

                Assert.IsNotNull(testingTarget.GetMD5Hash("ABCDEFG"), "Should not be null");
            }
            catch (Exception e)
            {
                Assert.Fail("Catch exception " + e.Message.ToString());
            }
            tlog.Debug(tag, $"GetMD5Hash END");
        }
Ejemplo n.º 8
0
        public void GetStreamAsync()
        {
            tlog.Debug(tag, $"GetStreamAsync START");

            try
            {
                var testingTarget = new TizenPlatformServices();
                Assert.IsNotNull(testingTarget, "Can't create success object TizenPlatformServices.");

                testingTarget.GetStreamAsync(new Uri("https://www.tizen.org/sites/all/themes/tizen_theme/logo.png"), CancellationToken.None);
            }
            catch (Exception e)
            {
                Assert.Fail("Catch exception " + e.Message.ToString());
            }
            tlog.Debug(tag, $"GetStreamAsync END");
        }