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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }