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